Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-02-21 16:57:03 +0300
committerRobin Appelman <robin@icewind.nl>2019-02-21 16:57:03 +0300
commitc02d8a536aad625533bd2378feb62a8b71b0b661 (patch)
tree3a241cb13d48aa1ad969188d3ee67b617da925bd
parentb1e152def8a23063b277e353f4b6d6d3fb22211e (diff)
apply the permissions mask after the root entry cachepermissions-mask-after-root-cache
this ensures that the permissions mask is properly applied on the root entry Fixes #273 Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/Mount/MountProvider.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Mount/MountProvider.php b/lib/Mount/MountProvider.php
index f99b330a..77b81082 100644
--- a/lib/Mount/MountProvider.php
+++ b/lib/Mount/MountProvider.php
@@ -73,20 +73,20 @@ class MountProvider implements IMountProvider {
'storage' => $this->getRootFolder()->getStorage(),
'root' => $this->getRootFolder()->getInternalPath() . '/' . $id
]);
- $maskedStore = new PermissionsMask([
- 'storage' => $baseStorage,
- 'mask' => $permissions
- ]);
$quotaStorage = new GroupFolderStorage([
- 'storage' => $maskedStore,
+ 'storage' => $baseStorage,
'quota' => $quota,
'folder_id' => $id,
'rootCacheEntry' => $cacheEntry
]);
+ $maskedStore = new PermissionsMask([
+ 'storage' => $quotaStorage,
+ 'mask' => $permissions
+ ]);
return new GroupMountPoint(
$id,
- $quotaStorage,
+ $maskedStore,
$mountPoint,
null,
$loader