care.security.authorization.facility_location module¶
- class FacilityLocationAccess¶
Bases:
AuthorizationHandler
- can_list_facility_location_obj(user, facility, location)¶
- can_create_facility_location_obj(user, location, facility)¶
Check if the user has permission to create locations under the given location
- can_update_facility_location_obj(user, location)¶
Check if the user has permission to write locations under the given location
- get_accessible_facility_locations(qs, user, facility)¶