function _ldap_authentication_user_access in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_authentication/ldap_authentication.module \_ldap_authentication_user_access()
- 7 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.
1 string reference to '_ldap_authentication_user_access'
- ldap_sso_menu in ldap_sso/
ldap_sso.module - Implements hook_menu().
File
- ldap_authentication/
ldap_authentication.module, line 201 - This module injects itself into Drupal's Authentication stack.
Code
function _ldap_authentication_user_access() {
return (bool) (!$GLOBALS['user']->uid || !empty($GLOBALS['menu_admin']));
}