function masquerade_permission in Masquerade 7
Implements hook_permission().
Return value
array
File
- ./
masquerade.module, line 25 - The masquerade module allows administrators to masquerade as other user.
Code
function masquerade_permission() {
return array(
'masquerade as user' => array(
'title' => t('Masquerade as user'),
'description' => t('Masquerade as another user.'),
),
'masquerade as any user' => array(
'title' => t('Masquerade as any user'),
'description' => t('Masquerade as any user.'),
'restrict access' => TRUE,
),
'masquerade as admin' => array(
'title' => t('Masquerade as admin'),
'description' => t('Masquerade as the site admin (UID 1).'),
'restrict access' => TRUE,
),
'administer masquerade' => array(
'title' => t('Administer Masquerade'),
'description' => t('Perform administration tasks and configure the Masquerade module.'),
'restrict access' => TRUE,
),
);
}