Skip to content

[UX] New Permission to Configure Book Module #6789

Open
@stpaultim

Description

@stpaultim

Description of the bug

image

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.

image

Steps To Reproduce

To reproduce the behavior:

  1. Give the editor role all permissions related to the Book module
  2. Login as an editor and navigate to '/admin/content/book'
  3. Note that the tabs for "List" and "Settings" are not available.
  4. 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.

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions