HKN-UCSD / old-hkn-server

Member portal for UCSD HKN members.
MIT License
5 stars 6 forks source link

Display induction requirements for user. #194

Closed godwinpang closed 3 years ago

godwinpang commented 3 years ago

Overview

User points can be found at /points/me. me serves as a special ID that will fetch the points for the currently signed in user.

Permissions

Officers can see points for any user, whereas users can only see their own points. This is implemented awkwardly by checking the roles of the user and the :id passed in. If all else fails, the endpoint is protected correctly anyways :)

Seeing points for other users is currently implemented via manually editing the URL :)

netlify[bot] commented 3 years ago

Deploy preview for hknucsd-portal-dev ready!

Built with commit f1cec7aef591a1d9eaeaa8ef9b855030d911d9d4

https://deploy-preview-194--hknucsd-portal-dev.netlify.app