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

[P4-353] Add locations to the user object #145

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

teneightfive
Copy link
Contributor

This change extends the user class to set the locations available
to that user on the user session object.

This PR is a precursor to some future changes:

  • ensure user can access location being viewed
  • if user only has access to only one location, default to that location
  • if user has access to multiple locations, allow them to choose

app/auth/middleware.js Outdated Show resolved Hide resolved
common/lib/user.js Outdated Show resolved Hide resolved
common/lib/user.js Outdated Show resolved Hide resolved
@teneightfive teneightfive changed the title Add locations to the user object [P4-353] Add locations to the user object Jul 19, 2019
This change extends the user class to set the locations available
to that user on the user session object.
@codeclimate
Copy link

codeclimate bot commented Jul 22, 2019

Code Climate has analyzed commit c2f56c9 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 98.1% (0.0% change).

View more on Code Climate.

@teneightfive teneightfive merged commit 73dfb07 into master Jul 22, 2019
@teneightfive teneightfive deleted the associate-user-with-location branch July 22, 2019 11:23
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.

None yet

2 participants