* fixed infinite loop

This commit is contained in:
slawkens 2017-10-17 17:03:47 +02:00
parent a9d9ace532
commit 1df0c2b313

View File

@ -676,7 +676,7 @@ function getSkillName($skillId, $suffix = true)
*/
function hasFlag($flag) {
global $logged, $logged_flags;
return ($logged && ($logged_flags & $flag) == $flag) || superAdmin();
return ($logged && ($logged_flags & $flag) == $flag);
}
/**
* Check if current logged user have got admin flag set.