mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: prevent sharing permissions on user root folder
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
4711c775b8
commit
750a9f2c4a
1 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ class LazyUserFolder extends LazyFolder {
|
|||
}
|
||||
}, [
|
||||
'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,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue