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

Improve "User Login" status tracking #59

Open
2 tasks
NiloCK opened this issue May 25, 2019 · 0 comments
Open
2 tasks

Improve "User Login" status tracking #59

NiloCK opened this issue May 25, 2019 · 0 comments

Comments

@NiloCK
Copy link
Owner

NiloCK commented May 25, 2019

Currently, login status is tracked only with a string representation of the username. Should instead be a richer object such as:

interface User {
  loggedIn: boolean,
  // ctx here refers to CouchDB's userContext object
  ctx: {
    name: string,
    roles: string[]
  } | undefined
}

Main nav menu should respond to user status:

  • Only logged in users should have a 'Study' item
  • Only logged in users with 'admin' role should have an 'Edit' button

Proper Vuex methods should be used to alter the user state in the store...

NiloCK added a commit that referenced this issue Jun 10, 2019
Clearing a bad prior attempt at #59
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

No branches or pull requests

1 participant