summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-10-19 19:40:52 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-11-14 14:28:16 +0000
commit0c88d5b303a80d6a02a0737599bcd3dd44d9a138 (patch)
tree9d63266d77e43d5617e3e5aaf0e78c57d868ae53 /lib/private
parent4b19cda7489bf15e44ae34a161ff1f5b241643b0 (diff)
downloadnextcloud-server-0c88d5b303a80d6a02a0737599bcd3dd44d9a138.tar.gz
nextcloud-server-0c88d5b303a80d6a02a0737599bcd3dd44d9a138.zip
reuse sharing disabled state when listing folder content
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index e5476c77b2a..43348cf63fd 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;
}