rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 4 forks source link

fix bug welsh nonsuperuser cannot filter by local_health_board as erroneously set to trust #998

Closed eatyourpeas closed 1 month ago

eatyourpeas commented 1 month ago

Overview

Error posted by user that would get a 500 error on login. Noted in recent update that nonsuperusers logging in from wales are filtering cases by trust, not local health board in organisation_views

Code changes

Change filter query in Organisation model to filter by local_health_board