aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-11-08 15:52:35 +0100
committerGitHub <noreply@github.com>2023-11-08 15:52:35 +0100
commit79088ea15f5724a0e00696cb77422fc66a07de7b (patch)
tree83ab38e99396aa9866ef78b3f48afca3a84dcc96
parent9285fe04ff277088bc06eda264712d3a164539a9 (diff)
parent9bc44de95d23b2adf7a595e97e94a4bd4e878403 (diff)
downloadnextcloud-server-79088ea15f5724a0e00696cb77422fc66a07de7b.tar.gz
nextcloud-server-79088ea15f5724a0e00696cb77422fc66a07de7b.zip
Merge pull request #40996 from nextcloud/view-share-disable-reuse
reuse sharing disabled state when listing folder content
-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 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;
}