Skip to content
Snippets Groups Projects
Commit 2454759a authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Check whether the user has permissions to add personal storage backends

parent 982d2bcc
Branches
No related tags found
No related merge requests found
...@@ -206,6 +206,12 @@ class OC_Mount_Config { ...@@ -206,6 +206,12 @@ class OC_Mount_Config {
*/ */
public static function getPersonalBackends() { 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(); $backEnds = self::getBackends();
// Remove local storage and other disabled storages // Remove local storage and other disabled storages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment