summaryrefslogtreecommitdiffstats
path: root/apps/files_external/personal.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-17 10:24:19 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-23 12:10:02 +0200
commit38a260e963abd04b75aff8d67a8cf7b3b20a9c67 (patch)
treeeb118da0cdd9819657efa8fbf58c6c754c4cf19c /apps/files_external/personal.php
parentee649d58c5f82ee209ddc1812c1a896da53de707 (diff)
downloadnextcloud-server-38a260e963abd04b75aff8d67a8cf7b3b20a9c67.tar.gz
nextcloud-server-38a260e963abd04b75aff8d67a8cf7b3b20a9c67.zip
Revert "Implement more fine-grained external storage permissions model"
This reverts commit 0b97a05e7bd631d66de1c2aee115113ada8a5f63. This reverts commit d2e3c17c0000bc0020f1ff641190452f370434de. This reverts commit cc88c5f4b84da57c425cbdb7dc8b391b1942b503.
Diffstat (limited to 'apps/files_external/personal.php')
-rw-r--r--apps/files_external/personal.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/personal.php b/apps/files_external/personal.php
index d47f983b357..efd23512ffe 100644
--- a/apps/files_external/personal.php
+++ b/apps/files_external/personal.php
@@ -35,10 +35,10 @@ OCP\Util::addScript('files_external', 'settings');
OCP\Util::addStyle('files_external', 'settings');
$backends = array_filter($backendService->getAvailableBackends(), function($backend) {
- return $backend->isPermitted(BackendService::USER_PERSONAL, BackendService::PERMISSION_CREATE);
+ return $backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL);
});
$authMechanisms = array_filter($backendService->getAuthMechanisms(), function($authMechanism) {
- return $authMechanism->isPermitted(BackendService::USER_PERSONAL, BackendService::PERMISSION_CREATE);
+ return $authMechanism->isVisibleFor(BackendService::VISIBILITY_PERSONAL);
});
foreach ($backends as $backend) {
if ($backend->getCustomJs()) {