Skip to content

Commit

Permalink
Merge pull request #4583 from bcgov/fix/4582
Browse files Browse the repository at this point in the history
feat(4582): add user roles to session roles if exist
  • Loading branch information
Kolezhanchik authored Dec 30, 2024
2 parents ffa77cf + 1b1765a commit 1863f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/auth-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export async function generateSession({
// @ts-ignore: Ignore TypeScript error for dynamic property assignment
session[key] = false;
});
session.roles = [];
session.roles = userSessionOverride?.roles || [];
session.ministries = {
editor: [],
reader: [],
Expand Down

0 comments on commit 1863f7f

Please sign in to comment.