Modifications pour le document Sections des configurations personnalisables

Modifié par Florent Charton le 2025/08/19 15:15

Depuis la version 2.1
modifié par Florent Charton
sur 2024/08/08 18:43
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-administration-ui/15.10.11]
À la version 3.1
modifié par Florent Charton
sur 2025/07/04 23:28
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-administration-ui/16.10.9]

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -69,7 +69,8 @@
69 69   #foreach($appName in $outputList)
70 70   ##
71 71   ## Make sure the current user has permission to edit the configurable application.
72 - #set($userHasAccessToDocument = $xcontext.hasAccessLevel('edit', $appName))
72 + ## Unless we are in the page administration which is never about modifying the application configuration page
73 + #set($userHasAccessToDocument = $level == '.page' || $xcontext.hasAccessLevel('edit', $appName))
73 73   ##
74 74   ## If the document was not last saved by a user with edit privilege on this page
75 75   ## then we can't safely display the page but we should warn the viewer.