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
An integration test was removed due to the need of a login test-hook ( commit 2116823eed2f68d36a10eb242e084b977ef4e647).
This test will be added back in a patch for issue #123
Description
authenticate.js
middleware to prevent requests from browsers without a valid tokenuserContext.js
to hide admin-only buttons (e.g. add, delete, modify) from normal users