ucsb-cs156-m23 / proj-happycows-m23-10am-4

https://ucsb-cs156-m23.github.io/proj-happycows-m23-10am-4/
0 stars 1 forks source link

Bug: "/api/usercommons/commons/all" api does not check ROLE #80

Closed publicqi closed 1 year ago

publicqi commented 1 year ago

Simple bug. I think it should be hidden from non-user, as leader board is hidden.

e.g. https://happycows-qa.dokku-07.cs.ucsb.edu/leaderboard/1: 404 https://happycows-qa.dokku-07.cs.ucsb.edu/api/usercommons/commons/all?commonsId=1: 200

publicqi commented 1 year ago

One liner change. I'll fix this when other PRs are merged to avoid conflicts.