diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | apps/files_external/lib/config.php | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md index 618aa8d2009..1a832092776 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,4 @@ Please submit translations via Transifex: https://www.transifex.com/projects/p/owncloud/ For more detailed information about translations: -http://doc.owncloud.org/server/6.0/developer_manual/core/translation.html +http://doc.owncloud.org/server/7.0/developer_manual/core/translation.html 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 |