og.module checks "node_access('update', $node)" all over the place to determine if the logged in user should have access to several Og admin features, such as emailing all subscribers, promoting/booting subscribers, etc.

The attached patch simply consolidates all these node_access checks to a "og_is_node_admin" function.

This allows developers (like me :-)) to manipulate the conditions that determine who the Og admin is for a particular node, without changing code all over the place.

CommentFileSizeAuthor
og.module.patch4.99 KBryan_courtnage

Comments

ryan_courtnage’s picture

I should add that the patch was applied against the HEAD (Revision 1.298.2.113) of the DRUPAL-5 branch from CVS

moshe weitzman’s picture

looks good ... in the future, please don't mark your own patches as status=RTBC

moshe weitzman’s picture

Status: Reviewed & tested by the community » Fixed

committed. thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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