You are here

function og_rules_user_has_permission in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og.rules.inc \og_rules_user_has_permission()

Condition: User has group permisison.

1 string reference to 'og_rules_user_has_permission'
og_rules_condition_info in ./og.rules.inc
Implements hook_rules_condition_info().

File

./og.rules.inc, line 444
Rules integration for the Organic groups module.

Code

function og_rules_user_has_permission($permission, $group, $account) {
  return og_user_access($group->gid, $permission, $account);
}