mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
Access Copy Page function for a role that only has view only for 'All' but can create their own. #971
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mark-james on GitHub (Dec 28, 2018).
Describe the bug
If a user only has view access on a book page, the user should still be able to copy that page to a book that they do have create/update access for.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
For a view only page a user should be able to 'copy' that page to a book provided they have create/update access on at least one book.
Screenshots

Copy Functionality
Additional context
Use Case: I have a bunch of pages that are templates. I don't want users to be able to edit them. But I do want them to be able to take a copy and then edit that copy.
@ssddanbrown commented on GitHub (Dec 28, 2018):
@mark-james Thanks for the suggestion. I can see the use-case for this and can see how this would be useful. I agree this is something that would be ideal to have.
Since you could also copy to chapters the copy option would need to show for users with create access to any chapter or book.
Is a bit different to other permission checks so will have to ensure it's done with performance in mind but should be possible.
@ssddanbrown commented on GitHub (Mar 9, 2019):
Now implemented as of merge in #1202. To be in the next patch release.