Skip to content

Commit

Permalink
Merge pull request #40996 from nextcloud/view-share-disable-reuse
Browse files Browse the repository at this point in the history
reuse sharing disabled state when listing folder content
  • Loading branch information
icewind1991 authored Nov 8, 2023
2 parents 9285fe0 + 9bc44de commit 79088ea
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 79088ea

Please sign in to comment.