summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Wrapper/PermissionsMask.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-07-13 14:17:52 +0200
committerRobin Appelman <robin@icewind.nl>2017-07-13 14:29:04 +0200
commit03f27b4c2c2c3a6d3187a877cf5feb93830b7a9f (patch)
treefe78c15253a6ccd3ec84416b6e50f93583fc241a /lib/private/Files/Storage/Wrapper/PermissionsMask.php
parentf71457782b1c0e6aa66ba6b2aac126aa5a2bc9dc (diff)
downloadnextcloud-server-03f27b4c2c2c3a6d3187a877cf5feb93830b7a9f.tar.gz
nextcloud-server-03f27b4c2c2c3a6d3187a877cf5feb93830b7a9f.zip
Fix scan permissions with nested permissions masks
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage/Wrapper/PermissionsMask.php')
-rw-r--r--lib/private/Files/Storage/Wrapper/PermissionsMask.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/PermissionsMask.php b/lib/private/Files/Storage/Wrapper/PermissionsMask.php
index 1bda92f13aa..16f0e420818 100644
--- a/lib/private/Files/Storage/Wrapper/PermissionsMask.php
+++ b/lib/private/Files/Storage/Wrapper/PermissionsMask.php
@@ -143,7 +143,7 @@ class PermissionsMask extends Wrapper {
$data = parent::getMetaData($path);
if ($data && isset($data['permissions'])) {
- $data['scan_permissions'] = $data['permissions'];
+ $data['scan_permissions'] = isset($data['scan_permissions']) ? $data['scan_permissions'] : $data['permissions'];
$data['permissions'] &= $this->mask;
}
return $data;