diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php
index dbb8b62288..b473aec535 100644
--- a/lib/Controller/WopiController.php
+++ b/lib/Controller/WopiController.php
@@ -414,7 +414,7 @@ public function getSettings(string $type, string $access_token): JSONResponse {
try {
$wopi = $this->wopiMapper->getWopiForToken($access_token);
- if ($wopi->getTokenType() !== Wopi::TOKEN_TYPE_SETTING_AUTH) {
+ if ($wopi->getTokenType() !== Wopi::TOKEN_TYPE_SETTING_AUTH && $wopi->getTokenType() !== Wopi::TOKEN_TYPE_USER) {
return new JSONResponse(['error' => 'Invalid token type'], Http::STATUS_BAD_REQUEST);
}
diff --git a/lib/Middleware/WOPIMiddleware.php b/lib/Middleware/WOPIMiddleware.php
index 26447dd4de..988698c740 100644
--- a/lib/Middleware/WOPIMiddleware.php
+++ b/lib/Middleware/WOPIMiddleware.php
@@ -63,7 +63,7 @@ public function beforeController($controller, $methodName) {
return;
}
- if (str_contains($this->request->getRequestUri(), '/wopi/settings/upload')) {
+ if (str_contains($this->request->getRequestUri(), '/wopi/settings')) {
return;
}
diff --git a/src/view/Office.vue b/src/view/Office.vue
index 7dc430b922..da89ab2a24 100644
--- a/src/view/Office.vue
+++ b/src/view/Office.vue
@@ -55,6 +55,7 @@
+