(view_fn)
return locations_access_required(
        require_permission('edit_locations',
                           view_only_permission='view_locations')(view_fn)
    )
Decorator verifying that the user has permission to edit and view
    individual locations.
Decorator verifying that the user has permission to edit and view
    individual locations.
Decorator verifying that the user has permission to edit and view individual locations .
def require_can_edit_or_view_locations(view_fn):
    """Decorator verifying that the user has permission to edit and view
    individual locations."""
    return locations_access_required(
        require_permission('edit_locations',
                           view_only_permission='view_locations')(view_fn)
    )
def require_can_edit_or_view_locations ( view_fn ) : return locations_access_required ( require_permission ( 'edit_locations' , view_only_permission = 'view_locations' ) ( view_fn ) )