Skip to content

Commit

Permalink
Reset user password dialog - don't display the field to request the o…
Browse files Browse the repository at this point in the history
…ld password for administrators - unify UI check with backend check
  • Loading branch information
josegar74 committed Nov 24, 2023
1 parent 2968165 commit b4f7c61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ <h3 data-translate="">UserAdmin</h3>
<form id="gn-password-reset" class="form-horizontal" name="gnPasswordReset">
<input type="hidden" name="_csrf" value="{{csrf}}" />
<div
data-ng-if="!user.isAdministratorOrMore()"
data-ng-show="!user.isAdministratorOrMore() || (user.isAdministratorOrMore() && !allowAdminReset)"
class="form-group"
data-ng-class="gnPasswordReset.passwordOld.$error.required ? 'has-error' : ''"
>
Expand Down

0 comments on commit b4f7c61

Please sign in to comment.