ucsb-cs156-w24 / proj-gauchoride-w24-7pm-2

https://ucsb-cs156-w24.github.io/proj-gauchoride-w24-7pm-2/
0 stars 1 forks source link

ln - fixed "Apply to be a Rider" in NavBar and fixed ROLE_RIDER granted authority #35

Closed nguyenliliana closed 6 months ago

nguyenliliana commented 6 months ago

"Apply to be a Rider" in the Navbar now only shows if user does NOT have ROLE_RIDER.

The ROLE_RIDER was not being granted or taken away when toggled by Admin. This was fixed by adding ROLE_RIDER to RoleInterceptor.java.

Files changed: frontend/src/main/components/Nav/AppNavbar.js src/main/java/edu/ucsb/cs156/gauchoride/interceptors/RoleInterceptor.java

Closes #25