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.
| Comment | File | Size | Author |
|---|---|---|---|
| og.module.patch | 4.99 KB | ryan_courtnage |
Comments
Comment #1
ryan_courtnage commentedI should add that the patch was applied against the HEAD (Revision 1.298.2.113) of the DRUPAL-5 branch from CVS
Comment #2
moshe weitzman commentedlooks good ... in the future, please don't mark your own patches as status=RTBC
Comment #3
moshe weitzman commentedcommitted. thanks.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.