Skip to content

Commit

Permalink
Merge pull request #29 from cernbox/cernbox-prod-8.2.2-guest-link-acc…
Browse files Browse the repository at this point in the history
…ess-fix

[Patch] Fix for user uid and gid on internal scripts execution
  • Loading branch information
NadirRoGue committed Jun 1, 2016
2 parents 92af2ff + d0a1c3c commit 4d52f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/files/objectstore/eosutil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 4d52f27

Please sign in to comment.