diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index 054abb361..ff88fbf63 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -1541,8 +1541,8 @@ class UserRights */ public static function IsActionAllowed($sClass, $iActionCode, $oInstanceSet = null, $oUser = null) { - // When initializing, we need to let everything pass through - if (is_null($oUser) && !self::CheckLogin()) { + // When initializing, we need to let everything pass trough + if (!self::CheckLogin()) { return UR_ALLOWED_YES; }