Skip to content

Commit

Permalink
Fix maintenance mode issue locking out admin users from logging into CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarry10 committed Jun 6, 2014
1 parent 7480122 commit f1ca571
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sites/all/modules/unl_cas/unl_cas.module
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ function unl_cas_get_adapter() {
return $adapter;
}

/**
* Implements hook_menu_site_status_alter().
*/
function unl_cas_menu_site_status_alter(&$menu_site_status, $path) {
// Allow access to user/cas even if site is in offline mode.
if ($menu_site_status == MENU_SITE_OFFLINE && user_is_anonymous() && $path == 'user/cas') {
$menu_site_status = MENU_SITE_ONLINE;
}
}

/**
* Implements hook_menu().
*/
Expand Down

1 comment on commit f1ca571

@nbarry10
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes issue unlcms#857 - unlcms#857

Please sign in to comment.