anyway, i tried to use this instead and it works well...
Quote:
if (($userid == "aa") && ($bbuserinfo[userid] == "bb" OR $bbuserinfo[userid] == "bb")) {
echo "<p>You cannot edit this admins profile</p>";
cpfooter();
exit;
}
|
but one problem though... i realised that the other admin can still access to the usergroup and he can modify the admin user group to disable the administrator from accessing the CP.
is there anyway to restrict other admins from accessing or editing the "Adminstrative Permissions" panel?