diff --git a/lib/private/files/objectstore/eosutil.php b/lib/private/files/objectstore/eosutil.php index 90b0277b1c5c..fe2db1ce406a 100644 --- a/lib/private/files/objectstore/eosutil.php +++ b/lib/private/files/objectstore/eosutil.php @@ -223,7 +223,7 @@ private static function isSharedLinkGuest() // it return the id and gid of a normal user or false in other case, including the id is 0 (root) to avoid security leaks public static function getUidAndGid($username) { // VERIFIED - if(self::$internalScript || (!$username && self::isSharedLinkGuest())) + if(!$username && (self::$internalScript || self::isSharedLinkGuest())) { return [0,0]; }