summaryrefslogtreecommitdiffstats
path: root/apps/files_external/controller
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-14 20:31:24 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-11-21 22:54:21 +0000
commit8f4b780a9055e9ce26a7c147fd4ee70dde8f02dc (patch)
tree17b7996db9dd7c58da3739fc659420bbc9416a0a /apps/files_external/controller
parent2efffb810d89f56cf2e128b536b79925bd5f9638 (diff)
downloadnextcloud-server-8f4b780a9055e9ce26a7c147fd4ee70dde8f02dc.tar.gz
nextcloud-server-8f4b780a9055e9ce26a7c147fd4ee70dde8f02dc.zip
Fix external storage priority logic
Diffstat (limited to 'apps/files_external/controller')
-rw-r--r--apps/files_external/controller/userglobalstoragescontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/controller/userglobalstoragescontroller.php b/apps/files_external/controller/userglobalstoragescontroller.php
index b77e23104e4..c6f777763e8 100644
--- a/apps/files_external/controller/userglobalstoragescontroller.php
+++ b/apps/files_external/controller/userglobalstoragescontroller.php
@@ -65,7 +65,7 @@ class UserGlobalStoragesController extends StoragesController {
* @NoAdminRequired
*/
public function index() {
- $storages = $this->service->getAllStorages();
+ $storages = $this->service->getUniqueStorages();
// remove configuration data, this must be kept private
foreach ($storages as $storage) {