There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-1f8a6c9b-fd30-4cb8-885c-db527d6a2f7d XWIKI-14073 Open

Hide the Copy action when the wiki is in readonly mode

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-b581898d-14d1-4634-aa5f-d1633e0fdd0b Charpentier Lucas on 24/Oct/24 17:34
 

According to https://github.com/xwiki/xwiki-platform/blob/c80c1ff8b8d668d7736343b2b49a2928ccd67792/xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-api/src/main/java/org/xwiki/security/internal/XWikiBridge.java#L41-L44 it seems like the readonly state is configured at the level of the server.
Henceforth, if it's not active on the current page, it's not active anywhere else.

This means that we can safely remove the feature when the readOnly mode is on.

 
cid:jira-generated-image-avatar-b581898d-14d1-4634-aa5f-d1633e0fdd0b Charpentier Lucas on 24/Oct/24 17:34
 
According to https://github.com/xwiki/xwiki-platform/blob/c80c1ff8b8d668d7736343b2b49a2928ccd67792/xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-api/src/main/java/org/xwiki/security/internal/XWikiBridge.java#L41-L44 it seems like the readonly state is configured at the level of the server.
Henceforth, if it's not active on the current page, it's not active anywhere else.

This means that we can safely remove the feature
UI when the readOnly mode is on.