Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Should return 403 when user tries to access project they are not a part of #193

Open
jue-henry opened this issue May 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jue-henry
Copy link
Contributor

jue-henry commented May 30, 2024

Currently the GetImages, GetImageById, and GetImageCount APIs do not have any permissions checking. We need to add this additional check for the correct project to /src/api/db/models/utils.js's hasRole function.

Add proper role annotation to the functions in the AuthedImageModel?

@jue-henry jue-henry added the bug Something isn't working label May 30, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant