Description
Description of the bug
In testing another permissions related PR (#3638) for the Book module, I discovered that in order to give a user permission to configure the book module and view a list of available books, one must have the "Administer Site Configuration" permission.
Steps To Reproduce
To reproduce the behavior:
- Give the editor role all permissions related to the Book module
- Login as an editor and navigate to '/admin/content/book'
- Note that the tabs for
"List" and "Settings"are not available. - Give the Editor the permission for "Administer Site Configuration" and note that they have access to these settings.
Actual behavior
That one needs a very comprehensive and potentially dangerous permission to simply view and administrative list of available books.
In order to manage settings for the book module one needs very wide spread access to site configuration.
Expected behavior
I would expect that there is a more focused permission such as "Administer books" that allows one to manage the book settings without having access to such a broad permission as "Administer Site Configuration."
UPDATED: Originally, I thought this issue also addressed the ability to simply list and reorder books. BUT, since this is not the case, this issue seems less important and I'm questioning whether or not the costs of adding a new permission are worth the benefits.
Additional information
These are all existing permissions that seem to be on the same level of one for "Administer books" would be:
Access the manage files overview
Administer text formats and filters
Administer text formats and filters
Current permissions for Book Module.
Alternatives
Even if there is reason to keep the "settings" tab under more restrictive permissions, I think the list tab should be easier to access. We could just assign it to the existing permission for Administer book outlines
. The problem with this might be in terms of Backward compatibility.
Can we give an existing permission access to something that it did not have access to in the past?
By creating a new permission, I think we are avoiding these potential backward compatibility problems.
Activity