martinjonsson01 / contract-portal

A website for working with a contract portfolio that can be bought into by other corporations. The central function of the portal allows for viewing these contracts and using them to receive discounts on purchases.
6 stars 1 forks source link

86 differentiate admin from user #109

Closed martinjonsson01 closed 2 years ago

martinjonsson01 commented 2 years ago

Summary

Separates admin user from normal users by only allowing access to certain API endpoints for admins, and only showing the admin page for the admin.

chrome_biqp53iEJM

NOTE TO REVIEWERS:

The list of changed files in this PR are more than what have actually been changed, since this branch was created from the branch for #108. The actual files you should be reviewing are the following, please ignore the rest (this problem will be resolved when we merge #108 into master): image

Definition of done

Closes #86