Apexal / rcos_io

The final RCOS web client. Built on the RCOS database via Hasura.
MIT License
3 stars 1 forks source link

Set project manager on project creation #5

Closed gmisail closed 1 year ago

gmisail commented 1 year ago

On project creation, assign the creator of the project as the project manager by adding a row to the enrollments table with the necessary information (project id, user id, 4 credits, semester_id).

This will need to be revised to support a stricter authentication scheme. In addition to this, we will need to revisit the Hasura call to modify the row if it already exists.

I also fixed the project/ route being broken; the /projects/<sem> route has been commented out in favor of the /projects/<project id> route. The commented route will be replaced with a querystring.