Merge pull request #8182 from owncloud/check-user-mounti

Check whether the user has permissions to add personal storage backends
This commit is contained in:
Robin McCorkell 2014-04-13 17:13:49 +01:00
commit 2e95101f86
1 changed files with 6 additions and 0 deletions

View File

@ -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