Skip to content

Commit f427464

Browse files
committed
fix: remove duplicate 'allow creating local storage' check
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 07f3565 commit f427464

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

apps/files_external/lib/Controller/GlobalStoragesController.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,6 @@ public function create(
102102
$applicableGroups,
103103
$priority
104104
) {
105-
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
106-
if (!$canCreateNewLocalStorage && $backend === 'local') {
107-
return new DataResponse(
108-
[
109-
'message' => $this->l10n->t('Forbidden to manage local mounts')
110-
],
111-
Http::STATUS_FORBIDDEN
112-
);
113-
}
114-
115105
$newStorage = $this->createStorage(
116106
$mountPoint,
117107
$backend,

apps/files_external/lib/Controller/UserStoragesController.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,6 @@ public function create(
132132
$backendOptions,
133133
$mountOptions
134134
) {
135-
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
136-
if (!$canCreateNewLocalStorage && $backend === 'local') {
137-
return new DataResponse(
138-
[
139-
'message' => $this->l10n->t('Forbidden to manage local mounts')
140-
],
141-
Http::STATUS_FORBIDDEN
142-
);
143-
}
144135
$newStorage = $this->createStorage(
145136
$mountPoint,
146137
$backend,

0 commit comments

Comments
 (0)