diff --git a/core/modules/user/src/AccountForm.php b/core/modules/user/src/AccountForm.php index e1902ae..d577694 100644 --- a/core/modules/user/src/AccountForm.php +++ b/core/modules/user/src/AccountForm.php @@ -71,12 +71,12 @@ public function form(array $form, FormStateInterface $form_state) { $register = $account->isAnonymous(); // This form is used for two cases: a user editing their own account or an - // admin editing another user's account. Check for the admin case by - // comparing the user IDs. If a user has 'administer users' permission - // then they count as an admin even when editing their own account. - // Note that the Entity framework checks access before calling this - // function to ensure that a user can only admin another user if they have - // core or contrib permissions to allow it. + // admin editing another user's account. Check for the admin case by + // comparing the user IDs. If a user has 'administer users' permission then + // they count as an admin even when editing their own account. + // Note that the Entity framework checks access before calling this function + // to ensure that a user can only admin another user if they have core or + // contrib permissions to allow it. $admin = $user->hasPermission('administer users') || ($user->id() != $account->id()); // Account information.