mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
reuse sharing disabled state when listing folder content
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
bb912ad47c
commit
9bc44de95d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue