Closed (won't fix)
Project:
Book access
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Aug 2008 at 23:56 UTC
Updated:
25 Jan 2009 at 23:41 UTC
Jump to comment: Most recent file
Add a perm called "Edit Own Book" so that if the current user is the author of the top book page, that user can edit any page in that book... regardless of which role they've been assigned and which roles have been granted access to the book.
I have some code for this, but it's not done yet.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | edit_own_book_code2.patch | 1.51 KB | shawn dearmond |
| #1 | edit_own_book_code.patch | 1.51 KB | shawn dearmond |
Comments
Comment #1
shawn dearmond commentedHere's a patch for this feature. I've tested it a little.
Only kinda works with nodes that are not of type: 'book' which have been added to the outline. It allows the user to modify the outline position of that node, but does not allow the user to actually edit the node. Not sure how we want to deal with those node types.
Comment #2
shawn dearmond commentedHere's an updated patch. It has the same functionality, it's just a little more streamlined. A little "prettier".
Comment #3
harry slaughternot sure if i want to implement this feature within this module. the idea of book_access is to protect books on a per-*book* basis according to roles, not on a per-page basis according to user.
if you want finer grained control than this, you may want to look at a module such as content access.
Comment #4
shawn dearmond commentedIn effect it is on a per-book basis. The user can access the whole book if the user is the author of the top book page.
Comment #5
harry slaughterUnfortunately, I have to abandon development of the D5 version of book_access. Unless someone wants to sponsor further development of the version or if proper patches are submitted, the remaining issues with D5 book_access will remain unresolved.