Fixed getting all permissions for users

ref #79
This commit is contained in:
2021-01-08 20:17:05 +01:00
parent 3bd4948c43
commit aa0337ea33
3 changed files with 12 additions and 9 deletions

View File

@@ -91,5 +91,6 @@ export class ResponseUser extends ResponsePrincipal {
this.profilePic = user.profilePic;
this.groups = user.groups;
this.permissions = user.allPermissions;
this.groups.forEach(function (g) { delete g.permissions });
}
}