Skip to content

Conversation

@fracado
Copy link
Contributor

@fracado fracado commented Apr 24, 2025

No description provided.

Copy link
Contributor

@printminion-co printminion-co left a comment

Choose a reason for hiding this comment

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

we should solve in richdocuments app

Index: lib/Listener/RegisterTemplateFileCreatorListener.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/Listener/RegisterTemplateFileCreatorListener.php b/lib/Listener/RegisterTemplateFileCreatorListener.php
--- a/lib/Listener/RegisterTemplateFileCreatorListener.php	(revision 180e0b69a33fdf5693d72915b4f0d647db2cd3df)
+++ b/lib/Listener/RegisterTemplateFileCreatorListener.php	(date 1745590904113)
@@ -34,7 +34,7 @@
 			return;
 		}
 
-		if (!$this->permissionManager->isEnabledForUser() || empty($this->capabilitiesService->getCapabilities())) {
+		if (!$this->permissionManager->isEnabledForUser() || !$this->permissionManager->userCanEdit() || empty($this->capabilitiesService->getCapabilities())) {
 			return;
 		}
 

@fracado
Copy link
Contributor Author

fracado commented May 16, 2025

done in nc-richdocuments

@fracado fracado closed this May 16, 2025
@fracado fracado deleted the fb/dev/prevent-doc-creation branch May 16, 2025 14:40
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.

3 participants