g3w-suite / g3w-admin

Server module for G3W-SUITE
https://g3w-suite.readthedocs.io/en/latest/g3wsuite_administration.html
Mozilla Public License 2.0
40 stars 34 forks source link

ACL on vector fields layers fail on REST API vector data download #795

Closed wlorenzetti closed 6 months ago

wlorenzetti commented 6 months ago

Checklist

Subject of the issue

If a ACL fields by user widget is a active, i.e. for anonymous user and field isocode, on a layer of a project:

Screenshot_20240327_081308

on WebgGis client rightly the attributes table does not show the isocode column:

Screenshot_20240327_081418

but on layer downloaded i.e. as xlsx format the column isocode is always present:

Screenshot_20240327_081531

Steps to reproduce

  1. Set a ACL fields on a layer of a project for a specific user.
  2. Active the download feature (i.e. xlsx) type for the layer.
  3. In WebGis client logged in as specific user, try to show the layer attribute table e check if the columns excluded for the specific user are missing.
  4. In WebGis client logged in as specific user, try to download the layer as xlsx and inside it check that the columns excluded for the specific user are present.

Environment

Link to your project

No response

Additional info

No response