Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Avoid getting the file for storing settings #4529

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

juliusknorr
Copy link
Member

Signed-off-by: Julius Knorr [email protected]

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@codewithvk codewithvk force-pushed the fix/settings-middleware-check branch from 98b7165 to 06e8fc1 Compare February 27, 2025 13:47
@@ -60,6 +61,11 @@ public function beforeController($controller, $methodName) {
$accessToken = $this->request->getParam('access_token');
[$fileId, ,] = Helper::parseFileId($fileId);
$wopi = $this->wopiMapper->getWopiForToken($accessToken);

if ($wopi->getTokenType() === Wopi::TOKEN_TYPE_SETTING_AUTH) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: sometimes we can also send document tokens(type 0 in wopi) when we want to upload while the document is open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants