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
sur 2024/08/08 18:43
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/15.10.11]
À la version 4.1
modifié par Florent Charton
sur 2025/08/19 15:15
sur 2025/08/19 15:15
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/17.4.3]
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
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. ... ... @@ -390,7 +390,7 @@ 390 390 $escapetool.xml($sectionDisplayName) 391 391 </span> 392 392 #if(!$hasAccess) 393 - <br/> <spanclass="errormessage">$services.localization.render('xe.admin.configurable.sectionIconNoAccess')</span>394 + <br/>#inlineError($services.localization.render('xe.admin.configurable.sectionIconNoAccess')) 394 394 #end 395 395 </a> 396 396 </li>