Quote:
Now I run into the problem of the "In this section" dialog box under "Users Management". I want to hide some of those links - in particular the ability to create new admins!
|
Solved by surrounding the links I do not wish this admin level to see with
Code:
if ($login == "master"){}
in admin/users_tools.php. For example:
Code:
if ($login == "master"){
if (empty($active_modules["Simple_Mode"])) {
$dialog_tools_data["left"][] = array("link" => "user_add.php?usertype=A", "title" => func_get_langvar_by_name("lbl_create_admin_profile"));
$dialog_tools_data["left"][] = array("link" => "user_add.php?usertype=P", "title" => func_get_langvar_by_name("lbl_create_provider_profile"));
}
else {
$dialog_tools_data["left"][] = array("link" => "user_add.php?usertype=P", "title" => func_get_langvar_by_name("lbl_create_admin_profile"));
}
}