You are here

function cas_menu_site_status_alter in CAS 7

Implements hook_menu_site_status_alter().

File

./cas.module, line 436
Enables users to authenticate via a Central Authentication Service (CAS) Cas will currently work if the auto registration is turned on and will create user accounts automatically.

Code

function cas_menu_site_status_alter(&$menu_site_status, $path) {
  if (user_is_logged_in() && strtolower($path) == 'cas') {

    // If user is logged in, redirect to '<front>' instead of giving 403.
    drupal_goto('');
  }
}