fixup! fix: Ensure edit permissions are checked before template file token generation

This commit is contained in:
Julius Knorr 2025-05-22 15:37:49 +02:00
parent 9222570ccc
commit 55490814b6
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -185,7 +185,7 @@ class TokenManager {
$updatable = $updatable && $shareUpdatable;
}
$updatable = $updatable && $this->permissionManager->userCanEdit($editoruid);
$updatable = $updatable && $this->permissionManager->userCanEdit($owneruid);
$serverHost = $this->urlGenerator->getAbsoluteURL('/');