Currently, to enable outline adding in a given book for a particular user who does not have the very broad 'administer book outlines' permission, a different user who does have that permission must go to admin/content/book/list and add that user to the add content list for that book. Even if you are the author of the book, you cannot manipulate its outline until someone with 'administer book outlines' permission has added you.

Also, I am using the Coherent Access module to enable multiple editors for nodes. I would like Outline to grant editor access to book outlines if the user is either the author of the book, or if the user is an editor of the book as set using Coherent Access. Depending on how you use book permissions on your site, this could eliminate the need for using the permissions link in the books list.

I've created a patch for outline.module that addresses these two issues. It automatically permits the author of the book to add content to its outline; and it permits users who are listed as an editor for the book by way of coherent access to add content to the book's outline.

Caveats:

  1. This is my first-ever attempt to offer a patch for a Drupal module!
  2. Both modifications assume that you agree that if you can edit a book, you should be automatically entitled to administer the book's outline. Perhaps some do not agree with that. In that case, perhaps there would need to be a permission: "administer own book outline"
  3. I believe that the "outline_check_perm" function is only called on root book nodes. I'm not sure what would happen if it were called on other nodes
  4. I'm pretty sure this works fine when Coherent Access is not installed/enabled - it just finds that there are no coherent access editors. However I have not tested it without CA installed. Also, I suspect that there are better/less hackish ways to do this (with hooks?), but if so, that's well over my head!
CommentFileSizeAuthor
outline_coherent_access.patch581 bytespdcarto
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

captaindav’s picture

Status: Needs review » Closed (won't fix)