Fix access for user meta info dialog in user list view.

This commit is contained in:
Emanuel Schütze 2019-05-10 07:17:09 +02:00
parent cef2e45b34
commit 91cb6c132c

View File

@ -202,7 +202,7 @@ export class UserListComponent extends ListViewBaseComponent<ViewUser, User> imp
* @param user is an instance of ViewUser. This is the given user, who will be modified.
*/
public openEditInfo(user: ViewUser, ev: MouseEvent): void {
if (this.isMultiSelect) {
if (this.isMultiSelect || !this.operator.hasPerms('users.can_manage')) {
return;
}
ev.stopPropagation();