From 0c88d5b303a80d6a02a0737599bcd3dd44d9a138 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 19 Oct 2023 19:40:52 +0200 Subject: reuse sharing disabled state when listing folder content Signed-off-by: Robin Appelman --- lib/private/Files/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Files') 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; } -- cgit v1.2.3