Skip to content

Guest only accepts custom permissions from role Public #1229

@Bolthier

Description

@Bolthier

Describe the bug
Guest user only accepts custom permissions from the role Public. Any other role permission is ignored. The default permissions however work if given from another role than Public.

Steps To Reproduce

  1. Go to roles and create another role "BookA", add this role to the user Guest
  2. Create a book "BookA" and configure custom permissions for role BookA to view and none for role Public
  3. Open a private tab with the book
  4. See no book

Expected behavior
Guest user should inherit custom permissions from other roles than Public.

Your Configuration (please complete the following information):

  • Exact BookStack Version: BookStack v0.25.0
  • PHP Version: 7.2.10
  • Hosting Method: Apache2

Additional context
I use custom permissions for all of my books. For every book I use a different role with the same name as the book. Only this role can create or edit. If I want users to edit a book, I just add them to the role and I'm done with it. This way I can also easily overview any given edit permissions of a user.

This works pretty flawless except for the Guest user, which I want to give edit access to some books but without loosing track where the role Public has permission to edit. This can get icky with an expanding library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions