mirror of
https://github.com/nextcloud/server.git
synced 2024-08-12 02:11:02 +02:00
Check whether the user has permissions to add personal storage backends
This commit is contained in:
parent
982d2bcc5b
commit
2454759af7
@ -206,6 +206,12 @@ class OC_Mount_Config {
|
||||
*/
|
||||
public static function getPersonalBackends() {
|
||||
|
||||
// Check whether the user has permissions to add personal storage backends
|
||||
// return an empty array if this is not the case
|
||||
if(OCP\Config::getAppValue('files_external', 'allow_user_mounting', 'yes') !== 'yes') {
|
||||
return array();
|
||||
}
|
||||
|
||||
$backEnds = self::getBackends();
|
||||
|
||||
// Remove local storage and other disabled storages
|
||||
|
Loading…
Reference in New Issue
Block a user