Skip to content

Applied admin-only methods so that normal users are restricted.

Bennett Lewis requested to merge feature/admin-restrict into develop

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

Merge request reports

Loading