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

Hide user backend (NEW) part 4 #105

Closed publicqi closed 1 year ago

publicqi commented 1 year ago

Overview

This PR is a breakdown of #85. It also contains #104.

In this PR, we added hidden user checks for all controllers. Hidden users do not have access to any of the endpoints.

Also, a new Exception class UserHiddenException is added.

In order to test locally, a helper function prototype in CurrentUserService is added.

Linked Issues

This PR relates to #84, but this PR solely does not close it.