diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 613f0b2609ce511f4d3b8cc2a5503f2a4a109197..71f6ae7887830e4a09ea5397eddcc854517a4605 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