With this config, MapStore2 will use a specific toolbar component (located in FeatureGrid header).
Expected behavior
Here, some use cases for a better understanding.
Use cases 1 :
As Economic Plot reporter,
I need to open mapstore context and see available plots,
In order to update plot activity / status (attributes)
Use case 2
As Plot monitoring officer,
I need to open attributes edition to several roles,
In order to draw some plots and ask to reports to update attributes without the right to change the geometry (plots geometry is under is my responsability)
Targeted behavior :
by default, editingAllowedRoles can edit geometry AND attributes (this is current behavior)
with this improvement, a specific ROLE will be able to edit attributes but can't be able to change geometry or draw new one
geometry toolbar behavior will be change (buttons will be disabled or hidden) according to the FeatureEditor config
To do that, we propose to insert a new editingAttributesAllowedRoles in FeatureEditor config :
note that editingAttributesAllowedRoles config name can change according to the community's suggestions
ROLE_A an ADMIN can change every attributes, create or change a geometry
ROLE_B can only changes attributes table
For this improvement, note that :
this restriction only limits the mapstore interface. If a ROLE_B user decide to edit the layer with another tool (e.g Qgis), he will be able to edit the layer according to GeoServer rules
GeoServer side and mapstore context configuration needs to allow edition for ROLE_A and ROLE_B
editingAttributesAllowedRoles config name can be change according to community feedback
Default mapstore behavior will not be change for admins users
What kind of improvement you want to add? (check one with "x", remove the others)
[ ] Minor changes to existing features
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
This enhancement is suggested by Geo2France (@vfabry @Doctor-Who)
Targeted version
>= release https://github.com/georchestra/mapstore2-georchestra/releases/tag/2023.02.00-RC4-geOrchestra
Linked issue
Description
Current behavior
Currently, FeatureEditor plugin allow to restrict geometry and attributes modifications to some roles via editionAllowedRoles config.
Here an example from current behavior where ROLE_A and ADMIN can fullly edit geometry and every attributes :
With this config, MapStore2 will use a specific toolbar component (located in FeatureGrid header).
Expected behavior
Here, some use cases for a better understanding.
Targeted behavior :
geometry AND attributes
(this is current behavior)To do that, we propose to insert a new
editingAttributesAllowedRoles
in FeatureEditor config :With this example :
For this improvement, note that :
allow
edition for ROLE_A and ROLE_BWhat kind of improvement you want to add? (check one with "x", remove the others)