permission for admins to reset passwords

This commit is contained in:
Maximilian Krambach 2019-02-28 11:29:58 +01:00
parent 9e2d42f9f4
commit 036ce4f02c

View File

@ -195,7 +195,10 @@ export class UserDetailComponent extends BaseViewComponent implements OnInit {
case 'changePersonal': case 'changePersonal':
return this.operator.hasPerms('users.can_manage') || this.ownPage; return this.operator.hasPerms('users.can_manage') || this.ownPage;
case 'changePassword': case 'changePassword':
return this.ownPage && this.operator.hasPerms('users.can_change_password'); return (
(this.ownPage && this.operator.hasPerms('users.can_change_password')) ||
this.operator.hasPerms('users.can_manage')
);
default: default:
return false; return false;
} }