Skip to content

Commit

Permalink
Issue #2: allow changing account status (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed Jan 13, 2024
1 parent 1ec1c2b commit 37f31a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion administerusersbyrole.module
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ function administerusersbyrole_form_user_profile_form_alter(&$form, &$form_state

if (_administerusersbyrole_check_access($account, 'edit')) {
$form['account']['name']['#access'] = TRUE;
$form['account']['status']['#access'] = TRUE;
$form['account_settings']['#access'] = TRUE;
$form['account_settings']['status']['#access'] = TRUE;
}

if (_administerusersbyrole_check_access($account, 'cancel')) {
Expand Down

0 comments on commit 37f31a4

Please sign in to comment.