public function LdapAuthorizationConsumerAbstract::hasLdapGrantedAuthorization in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::hasLdapGrantedAuthorization()
- 7.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::hasLdapGrantedAuthorization()
2 calls to LdapAuthorizationConsumerAbstract::hasLdapGrantedAuthorization()
- LdapAuthorizationConsumerOG::grantSingleAuthorization in ldap_authorization/
ldap_authorization_og/ LdapAuthorizationConsumerOG.class.php - add user to group and grant a role.
- LdapAuthorizationConsumerOG::revokeSingleAuthorization in ldap_authorization/
ldap_authorization_og/ LdapAuthorizationConsumerOG.class.php - * revoke an authorization * * extends revokeSingleAuthorization() * *
File
- ldap_authorization/
LdapAuthorizationConsumerAbstract.class.php, line 346 - abstract class to represent an ldap_authorization consumer such as drupal_role, og_group, etc. each authorization comsumer will extend this class with its own class named LdapAuthorizationConsumer<consumer type> such as…
Class
- LdapAuthorizationConsumerAbstract
- @file abstract class to represent an ldap_authorization consumer such as drupal_role, og_group, etc. each authorization comsumer will extend this class with its own class named LdapAuthorizationConsumer<consumer type> such as…
Code
public function hasLdapGrantedAuthorization(&$user, $authorization_id) {
// @todo load user and check field ldap_authorizations
return @$user->data['ldap_authorizations'][$this->consumerType][$authorization_id];
}