Applied admin-only methods so that normal users are restricted.
Created by: lecegues
Description
- Used the pre-made functions (authenticate.js, userContext) to restrict the user from doing admin-only actions if they don't have the proper credentials
- Backend:
authenticate.js
middleware to prevent requests from browsers without a valid token - Frontend:
userContext.js
to hide admin-only buttons (e.g. add, delete, modify) from normal users