Commit 56b6daf2 authored by Russ Fish's avatar Russ Fish

Use a plain isadmin test for permission to toggle webfreeze.

parent af0d6629
......@@ -83,9 +83,7 @@ if ($type == "adminon") {
}
elseif ($type == "webfreeze") {
# must be admin
# Do not check if they are admin mode (ISADMIN), check if they
# have the power to change to admin mode!
if (! ($CHECKLOGIN_STATUS & CHECKLOGIN_ISADMIN) ) {
if (! $isadmin) {
USERERROR("You do not have permission to toggle $type!", 1);
}
if (!TBCurrentUser($target_uid)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment