diff --git a/classes/permissions.class.php b/classes/permissions.class.php index 4af3060e..ae57dbb5 100644 --- a/classes/permissions.class.php +++ b/classes/permissions.class.php @@ -14,8 +14,7 @@ public static function check_perms($PermissionName, $MinClass = 0) { return ( isset(G::$LoggedUser['Permissions'][$PermissionName]) && G::$LoggedUser['Permissions'][$PermissionName] - && (G::$LoggedUser['Class'] >= $MinClass - || G::$LoggedUser['EffectiveClass'] >= $MinClass + && (G::$LoggedUser['EffectiveClass'] >= $MinClass || $Override) ) ? true : false; }