Skip to content

Commit

Permalink
Merge pull request #41462 from nextcloud/backport/40996/stable27
Browse files Browse the repository at this point in the history
[stable27] reuse sharing disabled state when listing folder content
  • Loading branch information
blizzz authored Nov 28, 2023
2 parents 9e67ab7 + 0c88d5b commit 52eddf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ public function getDirectoryContent($directory, $mimetype_filter = '', \OCP\File
$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;
}

Expand Down

0 comments on commit 52eddf8

Please sign in to comment.