From 036ce4f02c7618d816e9d9df0a9fe3087d36d5e7 Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Thu, 28 Feb 2019 11:29:58 +0100 Subject: [PATCH] permission for admins to reset passwords --- .../users/components/user-detail/user-detail.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/app/site/users/components/user-detail/user-detail.component.ts b/client/src/app/site/users/components/user-detail/user-detail.component.ts index 98ce79ab2..2f93a97f5 100644 --- a/client/src/app/site/users/components/user-detail/user-detail.component.ts +++ b/client/src/app/site/users/components/user-detail/user-detail.component.ts @@ -195,7 +195,10 @@ export class UserDetailComponent extends BaseViewComponent implements OnInit { case 'changePersonal': return this.operator.hasPerms('users.can_manage') || this.ownPage; 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: return false; }