jpwahle / cs-insights-backend

API server of the cs-insights project. This is the main part of storing data and accessing an external data analysis endpoint. It uses a mongoDB instance to store everything and queries the cs-insights-prediction-endpoint to get machine learning results.
https://jpwahle.github.io/cs-insights-backend/
MIT License
7 stars 0 forks source link

Change isAdmin to groups #95

Closed jpwahle closed 2 years ago

jpwahle commented 2 years ago

Was tracked in 13 but is actually an issue for the backend.

Is your feature request related to a problem? Please describe. See citation at the end of the description

Describe the solution you'd like We will change the UserModel to use a group field instead of a isAdmin field.

Additional context Using groups instead of a simple isAdmin allows us to fine tune the access control.

Cited comment: I agree, we will solve this by groups later. To not make this an artifact in the code, can you please open an issue for that and link the line of code from that commit?

_Originally posted by @jpelhaW in https://github.com/gipplab/cs-insights-prediction-endpoint/pull/12#discussion_r771195702_