Deleting a revision when lacking permissions kicks you back to far #3145

Closed
opened 2026-02-05 06:05:19 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @Mailstorm-ctrl on GitHub (Sep 14, 2022).

Describe the Bug

If you use an account that is allowed to view revisions but does not have the permission to delete revisions then attempt to delete a revision, you will be knocked back to the homepage.

This isn't that big of a deal but it is quite a shock from a user standpoint. Ideally you just get a message that says you don't have permission and then does nothing.

Steps to Reproduce

  1. Have a role that can read/view a book/shelf/whatever
  2. Have that same role not able to delete entity from step 1
  3. Be signed in as a user with the above role properties
  4. Look at revisions for page.
  5. Attempt to delete a revision.

Expected Behaviour

Just a "No permission to do that" error. NOT a kickback to the homepage.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

22.09

PHP Version

No response

Hosting Environment

Ubuntu 20.04 LTS

Originally created by @Mailstorm-ctrl on GitHub (Sep 14, 2022). ### Describe the Bug If you use an account that is allowed to view revisions but does not have the permission to delete revisions then attempt to delete a revision, you will be knocked back to the homepage. This isn't that big of a deal but it is quite a shock from a user standpoint. Ideally you just get a message that says you don't have permission and then does nothing. ### Steps to Reproduce 1. Have a role that can read/view a book/shelf/whatever 2. Have that same role not able to delete entity from step 1 3. Be signed in as a user with the above role properties 4. Look at revisions for page. 5. Attempt to delete a revision. ### Expected Behaviour Just a "No permission to do that" error. NOT a kickback to the homepage. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version 22.09 ### PHP Version _No response_ ### Hosting Environment Ubuntu 20.04 LTS
OVERLORD added the 🐛 Bug💆 UX labels 2026-02-05 06:05:19 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3145