Only check for admin permissions if needed

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-11-07 10:55:27 +01:00
parent 0a2d72ecc1
commit 59db47fd6b
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -182,7 +182,8 @@ class ACLPlugin extends ServerPlugin {
return;
}
$fileInfo = $node->getFileInfo();
if (!$this->isAdmin($fileInfo->getPath())) {
$mount = $fileInfo->getMountPoint();
if (!$mount instanceof GroupMountPoint || !$this->isAdmin($fileInfo->getPath())) {
return;
}