In the view I got table data filtered by zone with checkboxes,
the permision logic is for some people can see all the zones 0,1,2,3,4,5,6 , some people just one and some people some.
the checkboxes work the way you taught me on custom.zonaFilters with Expression Structure
selected_levels = []
if value['listZona_1']:
selected_levels.append('01')
if value['listZona_2']:
selected_levels.append('02')
if value['listZona_3']:
selected_levels.append('03')
if value['listZona_4']:
selected_levels.append('04')
if value['listZona_5']:
selected_levels.append('05')
if value['listZona_6']:
selected_levels.append('06')
zona_filter_str = ','.join(selected_levels)
return zona_filter_str if selected_levels else None
I guess I have to put some logic to diable the checkboxes the user can´t check for filtering.
I got some feedback about how to do it on:
in the gateway user configuration I already got a note with the zones that user have access to
the zonaFilters is a parameter on the query of places used to filter the main query