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.

Comments

deviantintegral’s picture

Status: Active » Needs review
StatusFileSize
new2.68 KB

The 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.

deviantintegral’s picture

StatusFileSize
new2.61 KB

Here is a slightly updated patch which is the same as above but calls the new function for the create instance link in the table.

deviantintegral’s picture

Status: Needs review » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.