* super admins have access to everything

This commit is contained in:
slawkens 2017-10-17 16:34:38 +02:00
parent cb83e17710
commit a9d9ace532

View File

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