Skip to content

[#162530597] protect admin routes, deploy to heroku#60

Open
ipaullly wants to merge 38 commits intodevelop-v2from
ch-protect-admin-routes-162530597
Open

[#162530597] protect admin routes, deploy to heroku#60
ipaullly wants to merge 38 commits intodevelop-v2from
ch-protect-admin-routes-162530597

Conversation

@ipaullly
Copy link
Owner

What does this PR do?

Add protection to routes only meant for admin accounts and make code refactors to allow Heroku deployment.

Description of Task to be completed?

  • Modify views for admin endpoints to throw a 401 if the account is not assigned a 'role' of admin.
  • Add logic to assign roles whenever an account is created. the first account will always have the 'role' of 'admin' and the rest that follow will be assigned 'user' by default.
  • Add config variables on Heroku i.e. to set up a PostgreSQL database add-on, SECRET KEY

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.

1 participant