admin
permissions
roles
Jahia 7.3
How to access the site settings without a site-administrator role?
Question
How to allow a user to run an action in the site settings without adding a site-administrator role?
Answer
First of all, a new role has to be created.
This role should have all permissions of a contributor role plus the permission to access the action in the site settings. Here is the procedure to create this role:
Administration ModeUsers and RolesRoles and Permissions: SelectSite Role, and name the role (ie: "contributeur-plus") and buttonAdd role.- In the Site Role list, open the
contributeur-plusrole, select theSite administrationtab and enable the action. - For the other tabs, you have to enable the same options than the contributor role.
- Click on the
SaveButton to save this new role. Edition ModeSite SettingsSite Role: Add the users and/or the groups who could have thecontributeur-plusrole
Secondly, the URL of the action attribute of the action form should point to the current site and not to the current node. This is needed if you got this warning when trying to access your action with a user having the contributeur-plus role in the site settings:
WARN [ErrorLoggingFilter] - [Error code: 403]: Access denied for resource: /cms/editframe/default/fr/modules/bope-design/164.1.0-SNAPSHOT/templates/site-s...
Here is an example
<form id="updateSiteForm" action="<c:url value='${url.base}${renderContext.mainResource.node.resolveSite.path}'/>"
method="post">