Merge pull request #4431 from MaximilianKrambach/resetPassword
permission for admins to reset passwords
This commit is contained in:
commit
3f7f12e3ad
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user