Skip to content

Commit

Permalink
Merge pull request #40229 from nextcloud/backport/40195/stable26
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Sep 5, 2023
2 parents 3be562d + c3f146b commit 22d19af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Files/Node/LazyUserFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public function __construct(IRootFolder $rootFolder, IUser $user) {
}
}, [
'path' => $this->path,
'permissions' => Constants::PERMISSION_ALL,
// Sharing user root folder is not allowed
'permissions' => Constants::PERMISSION_ALL ^ Constants::PERMISSION_SHARE,
'type' => FileInfo::TYPE_FOLDER,
'mimetype' => FileInfo::MIMETYPE_FOLDER,
]);
Expand Down

0 comments on commit 22d19af

Please sign in to comment.