--- cacti-0.8.5/lib/form.php 2004-02-03 01:21:08.000000000 -0500 +++ cacti-0.8.6/lib/form.php 2004-03-11 18:44:58.000000000 -0500 @@ -671,13 +671,17 @@ } function draw_menu() { - global $colors, $config, $user_auth_realm_filenames; + global $colors, $config, $user_auth_realms, $user_auth_realm_filenames; include($config["include_path"] . "/config_arrays.php"); /* list all realms that this user has access to */ + if (read_config_option("global_auth") == "on") { $user_realms = db_fetch_assoc("select realm_id from user_auth_realm where user_id=" . $_SESSION["sess_user_id"]); $user_realms = array_rekey($user_realms, "realm_id", "realm_id"); + }else{ + $user_realms = $user_auth_realms; + } print "