stanfordnmbl / opencap-api

Apache License 2.0
5 stars 6 forks source link

Result upload permissions #131

Closed olehkorkh-planeks closed 9 months ago

olehkorkh-planeks commented 9 months ago

Fix for https://github.com/stanfordnmbl/opencap-api/issues/60

suhlrich commented 9 months ago

@olehkorkh-planeks We still need users in the backend and admin group to be able to post. Can we use the isOwner, isAdmin, and isBackend classes defined at the top? https://github.com/stanfordnmbl/opencap-api/blob/c63326aa14f99680a249a9d94fc6e50a02c47963/mcserver/views.py#L85

If not, some other way to provide access to users in the admin and backend groups is fine with me.

olehkorkh-planeks commented 9 months ago

@suhlrich Improved the code that checks the permission.