From a9d9ace5320b11efd74eaec68d49dc942b60fe3c Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 17 Oct 2017 16:34:38 +0200 Subject: [PATCH] * super admins have access to everything --- system/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/functions.php b/system/functions.php index 581f39e7..7ea9347c 100644 --- a/system/functions.php +++ b/system/functions.php @@ -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.