Disable Access Rights Menu for Terminal Pages in the Advanced View

Hi,

Some of our Users had activated the User Type Advanced Mode in their Profiles. This helps them for their Projects. Unfortunatelly they have here a Access Rights Portal wich is independend from the Admin View (Page Administration: Rights: Page ).

grafik

Some Users had Accidentialy Set wrong permissions to other Users. So the Admins don´t see the Permission who was set.

The Users should only modify the pages NOT THE PERMISSIONS FOR THE SITE.

Is it Possible to block this Option for the Users?

Thanks for your help.

With best regards

Hello,
IMO you can not disabled this option if user have write access on your page.
What you could do is:

  • hide “Access right” shortcut with CSS (aka SSX object)
  • or remove it with ./skins/flamingo/menus_content.vm file editing.
    For my part, it is this last way I choose,
##remove rights submenu for non admin and users in XWikiEditRights group
      #if (($doc.name != 'WebHome' || !$hasSpaceAdmin || !$isAdminAppInstalled)  && ($xwiki.user.isUserInGroup('XWiki.XWikiEditRights') || $hasAdmin)) ##efface le menu ACL si pas admin ou pas  XWikiEditRights
        #submenuitem($doc.getURL('edit', 'editor=rights') $services.localization.render('core.menu.edit.rights') 'tmEditRights', '', 'lock')
      #end
....
#if ($xwiki.user.isUserInGroup('XWiki.XWikiEditRights') || $hasAdmin) ##efface le menu ACL si pas admin ou pas XWikiEditRights
        shortcut.add("$services.localization.render('core.shortcuts.view.rights')",function() { var editRights = $('tmEditRights'); location.href= editRights ? editRights.href : "$xwiki.getURL($spacePreferencesDocumentReference, 'admin', 'category=1')";}, { 'disable_in_input':true });
#end

Anyways, it is far to be perfect because users could still use URI “?editor=rights” to edit rights access.

Pascal B