function ldap_authorization_og1_has_membership in Lightweight Directory Access Protocol (LDAP) 8.2
2 calls to ldap_authorization_og1_has_membership()
- LdapAuthorizationConsumerOG::hasAuthorization in ldap_authorization/
ldap_authorization_og/ LdapAuthorizationConsumerOG.class.php - NOTE this is in mixed case, since we must rely on whatever module is storing the authorization id
- LdapAuthorizationOg1Tests::testBasicFunctionsAndApi in ldap_authorization/
tests/ Og1Tests.test - just make sure install succeeds and og and ldap_authorization_og functions work as designed
File
- ldap_authorization/
ldap_authorization_og/ ldap_authorization_og.module, line 171 - controls organic group membership based on LDAP values
Code
function ldap_authorization_og1_has_membership($gid, $uid) {
return (bool) og_get_group_membership($gid, 'user', $uid);
}