Skip to content

Commit 411c171

Browse files
committed
fix: allow document creation only for users that can edit
Signed-off-by: Franziska Bath <franziska.bath@strato.de>
1 parent db7be61 commit 411c171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Listener/RegisterTemplateFileCreatorListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function handle(Event $event): void {
3434
return;
3535
}
3636

37-
if (!$this->permissionManager->isEnabledForUser() || empty($this->capabilitiesService->getCapabilities())) {
37+
if (!$this->permissionManager->isEnabledForUser() || !$this->permissionManager->userCanEdit() || empty($this->capabilitiesService->getCapabilities())) {
3838
return;
3939
}
4040

0 commit comments

Comments
 (0)