Here's a rather large patch against rc1 to extend the functionality to delegate access to individual users as well as nodes.
It contains the following:
- Users are added via textfield autocomplete
- the patch creates an extra db table to hold the uids - this is created in an update function, so it wont break existing installations
- In a 3-tiered site administration system (site admins, section managers, editors), some admins may only want to allow their section managers to delegate editors to roles (or vice versa) - the patch creates 2 new permissions to delegate to role/delegate to user. Users with 'administer book outlines' permission can delegate to either.
- Formerly people with the above permissions automatically got sitewide editing grants - however you may only want your section managers to have control over part of the site. So there is a hook to allow external modules to limit the section of the site the section manager can delegate editors to.
I can of course supply documentation etc - just waiting to see how the initial patch fares :)
| Comment | File | Size | Author |
|---|---|---|---|
| book_page_access_delegateusers.patch | 12.7 KB | nirbhasa |
Comments
Comment #1
samo commented1) Should the new table be part of the schema statement?
2) "seperated'
Comment #2
nirbhasa commented1) Hmm - i just followed the way they do it when they add tables during update in core Drupal e.g adding the semaphore table in the 6.16 update. I believe this way allows you to uninstall the module effectively.
2) Thanks - I might also remove reference to autocomplete as you need 'view profiles' permission to see it, it should be obvious enough its there. anyway, I'll wait until the module mantainer pitches in on 1) before I roll a new patch
Comment #3
Vc Developer commentedIs this patch in the current dev?
Comment #4
nirbhasa commentedIt should be - that dev is only marked Jul 11 due to some drupal.org artefact, i think it dates to earlier than that
Comment #5
Vc Developer commentedOK thanks!...