oaregithub / oare_mono

1 stars 0 forks source link

fixes site for non admins after readonly bugs #1661

Closed hbludworth closed 1 year ago

hbludworth commented 1 year ago

Site was breaking for all non-admins. It was because the OareAppBar was retrieving environment info in order to display the readonly ribbon as necessary. However, that route was admin-only for good reason, causing a 401 no matter what page you loaded.

This PR simply creates a new route that only retrieves read only status and uses that to display the ribbon as necessary.