You are here

function useraccount_permissions_permission in User Account Permissions 7

Implements hook_permission().

File

./useraccount_permissions.module, line 11
Adds more granular permissions related to user accounts.

Code

function useraccount_permissions_permission() {
  return array(
    'edit own user account' => array(
      'title' => t('Edit own user account'),
      'description' => t('User can edit their own account profile.'),
    ),
    'edit own email address' => array(
      'title' => t('Edit own email address'),
      'description' => t('User can edit their own email address.'),
    ),
    "edit other user's email address" => array(
      'title' => t("Edit other users' email address"),
      'description' => t("User can change another user's email address"),
      'restrict access' => TRUE,
    ),
    'change own password' => array(
      'title' => t('Change own password'),
      'description' => t('User can change their own password.'),
    ),
    "change other user's password" => array(
      'title' => t("Change other user's password"),
      'description' => t("User can change another user's password."),
      'restrict access' => TRUE,
    ),
  );
}