function masquerade_perm

7.x masquerade.module masquerade_perm()
6.x masquerade.module masquerade_perm()

Implementation of hook_perm

File

modules/masquerade/masquerade.module, line 238
The masquerade module, which allows admin users to impersonate other users.

Code

function masquerade_perm() {
  return array(
    "access_masquerade" => array(
      "title" => t("Access masquerade"),
      "description" => t("This is a VERY powerful permission!  It will allow 
                           a user to become any other user (except admin), without
                           knowing their password.  Only give it to very trusted users."),
      "admin_restricted" => TRUE, // means only appears for admin (user_id == 1)
    ),
  );
}