Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the user token to get user details #352

Merged
merged 3 commits into from
May 13, 2024
Merged

Using the user token to get user details #352

merged 3 commits into from
May 13, 2024

Conversation

brightonsbox
Copy link
Contributor

No description provided.

@brightonsbox brightonsbox force-pushed the jb/hmppsUser branch 5 times, most recently from 4c2f727 to 0656ec0 Compare May 3, 2024 08:41
@thomasridd
Copy link
Contributor

If you've managed to pull out managed-users-api entirely I think you can pull out some values from the helm files too

@brightonsbox brightonsbox force-pushed the jb/hmppsUser branch 2 times, most recently from 3fd572d to c54c5a9 Compare May 10, 2024 14:06
}

if (res.locals.user.authSource === 'nomis') {
res.locals.user.staffId = +userId || undefined
Copy link
Contributor

@andrewrlee andrewrlee May 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason not to use parseInt here?

(just as exemplar code, this handles a few values weirdly and wouldn't encourage people to use coercion generally)

andrewrlee
andrewrlee previously approved these changes May 13, 2024
Copy link
Contributor

@andrewrlee andrewrlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

petergphillips
petergphillips previously approved these changes May 13, 2024
Copy link
Contributor

@petergphillips petergphillips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@andrewrlee andrewrlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brightonsbox brightonsbox merged commit 78e2040 into main May 13, 2024
4 checks passed
@brightonsbox brightonsbox deleted the jb/hmppsUser branch May 13, 2024 12:50
tpmcgowan added a commit to ministryofjustice/book-a-prison-visit-staff-ui that referenced this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants