Merge pull request #4684 from emanuelschuetze/fixUserList

Fix access for user meta info dialog in user list view.
This commit is contained in:
Emanuel Schütze 2019-05-10 08:39:11 +02:00 committed by GitHub
commit 6f7f25727c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();