function _ldap_authentication_user_access in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authentication/ldap_authentication.module \_ldap_authentication_user_access()
- 7.2 ldap_authentication/ldap_authentication.module \_ldap_authentication_user_access()
A user access callback for using the single sign-on URL, denying access to authenticated users, and granting access to anonymous users and menu administrators viewing the menu item.
File
- ldap_authentication/
ldap_authentication.module, line 200 - This module injects itself into Drupal's Authentication stack.
Code
function _ldap_authentication_user_access() {
return (bool) (!$GLOBALS['user']->uid || !empty($GLOBALS['menu_admin']));
}