There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-920eeffc-c293-4b75-87db-2f6844c77f36 XWIKI-22509 Open

Users with admin rights on a page (and its children) can't access page administration sections that have scope WIKI+ALL_SPACES

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-1eb82d16-de2c-4156-8bd7-f9006640409d Marius Dumitru Florea on 09/Oct/24 14:42
 

The Pinned Child Pages administration section itself doesn't check access rights. The access rights are checked by the Configurable Class "framework" https://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HMakingyourapplicationconfigurablewithConfigurableClass . The bug seems to be in the Administration Application. The Pinned Child Pages administration section doesn't do anything special. Its scope is set to WIKI+ALL_SPACES. I checked and there are other 2 sections with this scope:

I can reproduce the problem with both. I'm referring to these sections from page administration:

  • Content > Attachment Restriction
  • User & Right > Extensions Rights
 
cid:jira-generated-image-avatar-1eb82d16-de2c-4156-8bd7-f9006640409d Marius Dumitru Florea on 09/Oct/24 14:44
 

You can configure pinned pages at the space level. The bug is that the section is not visible to space admins, only to wiki admins. This affects other admin sections as well, as mentioned in my previous comment, not just the pinned pages one.

It's a bug of the Configurable Class "framework", used to publish the config sections. When you define an admin section with Configurable class you can specify a scope, and one possible value is WIKI+ALL_SPACES, to have the section displayed both in the wiki admin and in the space (page+children) admin. The bug is that it requires wiki admin to see those sections in the space administration.