mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-18 05:20:43 +01:00
fix: Ensure edit permissions are checked before template file token generation
otherwise file created from template will be editable for user with readonly permissions Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
This commit is contained in:
parent
9a89115d87
commit
9222570ccc
1 changed files with 2 additions and 0 deletions
|
|
@ -185,6 +185,8 @@ class TokenManager {
|
|||
$updatable = $updatable && $shareUpdatable;
|
||||
}
|
||||
|
||||
$updatable = $updatable && $this->permissionManager->userCanEdit($editoruid);
|
||||
|
||||
$serverHost = $this->urlGenerator->getAbsoluteURL('/');
|
||||
|
||||
return $this->wopiMapper->generateFileToken(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue