mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
* super admins have access to everything
This commit is contained in:
parent
cb83e17710
commit
a9d9ace532
@ -676,7 +676,7 @@ function getSkillName($skillId, $suffix = true)
|
||||
*/
|
||||
function hasFlag($flag) {
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user