mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
parent
3e1ade4397
commit
0b2c9b823c
1 changed files with 5 additions and 0 deletions
|
|
@ -266,6 +266,11 @@ class OC_Mount_Config {
|
|||
$mountType,
|
||||
$applicable,
|
||||
$isPersonal = false) {
|
||||
$mountPoint = OC\Files\Filesystem::normalizePath($mountPoint);
|
||||
if ($mountPoint === '' || $mountPoint === '/') {
|
||||
// can't mount at root
|
||||
return false;
|
||||
}
|
||||
if ($isPersonal) {
|
||||
// Verify that the mount point applies for the current user
|
||||
// Prevent non-admin users from mounting local storage
|
||||
|
|
|
|||
Loading…
Reference in a new issue