Skip to content

Commit

Permalink
fix(access-rights): Do not override roles
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner committed Apr 22, 2024
1 parent 55163e1 commit a773f0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export class HsCommonLaymanAccessRightsComponent implements OnInit {
const laymanUser: LaymanUser = {
...user,
name: user.username,
role: [],
role: user.role || [],
};
//Assign rights after obj initiation to have acess to mocked role
laymanUser.read =
Expand Down

0 comments on commit a773f0e

Please sign in to comment.