Изменения документа Настраиваемые разделы

Редактировал(а) Alexey Semenihin 23.10.2026, 15:12

От версии 2.1
отредактировано Dmitriy Rybakov
на 04.10.2024, 00:09
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-administration-ui/15.10.12]
К версии 4.1
отредактировано Alexey Semenihin
на 23.10.2026, 15:12
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-administration-ui/17.10.12]

Сводка

Подробности

Свойства страницы
Автор документа
... ... @@ -1,1 +1,1 @@
1 -XWiki.rybakovds
1 +XWiki.semenihinaa
Содержимое
... ... @@ -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/><span class="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>