diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-07 15:43:27 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-07 15:43:27 +0200 |
commit | 143e4a81f0a4515cc43d21dd93aa10331f2736b2 (patch) | |
tree | a7c0c46ce02db38925efc5fd04ea9bd8c15a74cd /lib/private/files | |
parent | 78203ecc2ffffd9e26e117223d3e7533e52938ea (diff) | |
download | nextcloud-server-143e4a81f0a4515cc43d21dd93aa10331f2736b2.tar.gz nextcloud-server-143e4a81f0a4515cc43d21dd93aa10331f2736b2.zip |
Fix removal of share permissions when share disabled for user
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 1a6be73d5bb..dc6e8aaa719 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -1354,7 +1354,7 @@ class View { // if sharing was disabled for the user we remove the share permissions if (\OCP\Util::isSharingDisabledForUser()) { - $content['permissions'] = $content['permissions'] & ~\OCP\Constants::PERMISSION_SHARE; + $rootEntry['permissions'] = $rootEntry['permissions'] & ~\OCP\Constants::PERMISSION_SHARE; } $files[] = new FileInfo($path . '/' . $rootEntry['name'], $subStorage, '', $rootEntry, $mount); |