You are here

function _ldap_authentication_user_access in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_authentication/ldap_authentication.module \_ldap_authentication_user_access()
  2. 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.

File

ldap_authentication/ldap_authentication.module, line 283
This module injects itself into Drupal's Authentication stack.

Code

function _ldap_authentication_user_access() {
  return (bool) (!$GLOBALS['user']->uid || !empty($GLOBALS['menu_admin']));
}