diff options
author | Robin Appelman <robin@icewind.nl> | 2023-10-19 19:40:52 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-10-19 19:40:52 +0200 |
commit | 9bc44de95d23b2adf7a595e97e94a4bd4e878403 (patch) | |
tree | 6771f8e242a05e3273357bceb7f0775359d00d9d /lib/private/Files | |
parent | bb912ad47c34e99095477eec9943fe0ec21680b8 (diff) | |
download | nextcloud-server-9bc44de95d23b2adf7a595e97e94a4bd4e878403.tar.gz nextcloud-server-9bc44de95d23b2adf7a595e97e94a4bd4e878403.zip |
reuse sharing disabled state when listing folder content
Signed-off-by: Robin Appelman <robin@icewind.nl>
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 86651ab3e1a..ec0d037af06 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1525,7 +1525,7 @@ class View { $rootEntry['path'] = substr(Filesystem::normalizePath($path . '/' . $rootEntry['name']), strlen($user) + 2); // full path without /$user/ // if sharing was disabled for the user we remove the share permissions - if (\OCP\Util::isSharingDisabledForUser()) { + if ($sharingDisabled) { $rootEntry['permissions'] = $rootEntry['permissions'] & ~\OCP\Constants::PERMISSION_SHARE; } |