mirror of
https://github.com/netzbegruenung/groupfolders.git
synced 2024-05-08 04:03:40 +02:00
Only check for admin permissions if needed
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
0a2d72ecc1
commit
59db47fd6b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue