Skip to content

Commit b4b4924

Browse files
committed
fix: check for the identifier alias for the storage backend
1 parent ee8fe4f commit b4b4924

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files_external/lib/Controller/GlobalStoragesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function create(
8888
) {
8989
$canCreateNewLocalStorage = \OC::$server->getConfig()->getSystemValue('files_external_allow_create_new_local', false);
9090

91-
if ($backend === 'local' && $canCreateNewLocalStorage === false) {
91+
if (($backend === 'local' || $backend === '\OC\Files\Storage\Local') && $canCreateNewLocalStorage === false) {
9292
return new DataResponse(
9393
null,
9494
Http::STATUS_FORBIDDEN

apps/files_external/lib/Controller/UserStoragesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function create(
129129
);
130130
}
131131
$canCreateNewLocalStorage = \OC::$server->getConfig()->getSystemValue('files_external_allow_create_new_local', false);
132-
if ($backend === 'local' && $canCreateNewLocalStorage === false) {
132+
if (($backend === 'local' || $backend === '\OC\Files\Storage\Local') && $canCreateNewLocalStorage === false) {
133133
return new DataResponse(
134134
null,
135135
Http::STATUS_FORBIDDEN

0 commit comments

Comments
 (0)