diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-04-13 17:13:49 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-04-13 17:13:49 +0100 |
commit | 2e95101f86003ac9f042477ceb635e85ee22558c (patch) | |
tree | cf1ff4781e368f5b98e721402df75e1f9231d4b6 | |
parent | 9de3c1b59d808b9725e728a2956f66b1d02274fe (diff) | |
parent | 2454759af785e89b1852e381ad9249db98dd304b (diff) | |
download | nextcloud-server-2e95101f86003ac9f042477ceb635e85ee22558c.tar.gz nextcloud-server-2e95101f86003ac9f042477ceb635e85ee22558c.zip |
Merge pull request #8182 from owncloud/check-user-mounti
Check whether the user has permissions to add personal storage backends
-rwxr-xr-x | apps/files_external/lib/config.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 613f0b2609c..71f6ae78878 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -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 |