You are here

public function LdapAuthorizationConsumerAbstract::hasAuthorization in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::hasAuthorization()
  2. 7.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::hasAuthorization()
2 calls to LdapAuthorizationConsumerAbstract::hasAuthorization()
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 351
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 hasAuthorization(&$user, $authorization_id) {
  return @in_array($authorization_id, $this
    ->usersAuthorizations($user));
}