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 :)

CommentFileSizeAuthor
book_page_access_delegateusers.patch12.7 KBnirbhasa

Comments

samo’s picture

1) Should the new table be part of the schema statement?

2) "seperated'

nirbhasa’s picture

1) 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

Vc Developer’s picture

Is this patch in the current dev?

nirbhasa’s picture

It should be - that dev is only marked Jul 11 due to some drupal.org artefact, i think it dates to earlier than that

Vc Developer’s picture

OK thanks!...