You are here

function _devel_switch_user_access in Devel 6

Same name and namespace in other branches
  1. 7 devel.module \_devel_switch_user_access()

Menu item access callback - check permission and token for Switch User.

1 string reference to '_devel_switch_user_access'
devel_menu in ./devel.module
Implementation of hook_menu().

File

./devel.module, line 213

Code

function _devel_switch_user_access($name) {

  // Suppress notices when on other pages when menu system still checks access.
  return user_access('switch users') && drupal_valid_token(@$_GET['token'], "devel/switch/{$name}|" . @$_GET['destination'], TRUE);
}