Merge pull request #4431 from MaximilianKrambach/resetPassword

permission for admins to reset passwords
This commit is contained in:
Emanuel Schütze 2019-02-28 14:33:04 +01:00 committed by GitHub
commit 3f7f12e3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}