If you don't have "add content to books" and "create new books" permissions, things break when you create an instance. The form should not be able to be accessed if those permissions aren't set, and a suitable error message should be set. The documentation may need to be updated as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 357494_check_book_permissions_2.patch | 2.61 KB | deviantintegral |
| #1 | 357494_check_book_permissions.patch | 2.68 KB | deviantintegral |
Comments
Comment #1
deviantintegral commentedThe attached patch checks to see if the user has all of the appropriate permissions needed to create a book and book pages, and if not hides the create instance link and denies access to the menu item. It also removes the submit button from the skeleton form.
Comment #2
deviantintegral commentedHere is a slightly updated patch which is the same as above but calls the new function for the create instance link in the table.
Comment #3
deviantintegral commentedCommitted to HEAD.