Rules integration calls og_is_group_member() with wrong arguments.
crea - November 1, 2009 - 03:43
| Project: | Organic groups |
| Version: | 6.x-2.x-dev |
| Component: | og.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
It's probably outdated, i.e. at some point OG api changed but Rules integration wasn't updated to reflect the changes.
Now it's using og_is_group_member($node->nid, $user) but actual function should be called like og_is_group_member($gid, $include_admins = TRUE, $uid = NULL)

#1
Attached patch fixes this bug. Also it adds checkbox for condition "user is member" so it's possible to control $include_admins variable.
#2
would be good to get a review/confirmation from a rules developer.