Skip to content

Fields - Allows some roles to edit or draw feature #10658

@Gaetanbrl

Description

@Gaetanbrl

This issue works with #10523
This issue will be includes in PR #10524 (needs same code base with editable fields)

Description

This improvement will change :

  • In General Fields settings > display geom field as other fields
  • In General Fields settings > geom field can't be changes
  • In General Fields settings > geom field is editable according to editing roles and group > This is nativ behavior
  • In General Fields settings > Fields schema use keys to identify geom field and allowed roles

Changes about attributes table toolbar (geom buttons as add feature, snap, delete, modify...) in EDIT MODE :

  • if user is not an editor but a role is includes in field setting geom editor > toolbar buttons are not visible > Needs to be an editor according to default rules
  • if user can edit and group is not includes in field setting geom editor > toolbar buttons are not visible
  • if user can edit and group is includes in field setting geom editor > toolbar buttons are visible
  • if allowed groups are not set from geom field setting > native behavior is apply
  • Admin can't edit if a specific role is set in geom field setting (see gif below)

This improvement not contains:

fields UI modification due to UI/UX logic not etablished (according to @tdipisa @offtherailz request)

Acceptance criteria

In EDIT mode :

  • Editor and not a geom editor > user can only edit attributes valeu and can't draw feature from toolbar actions (changes, add, ...)
  • Editor and geom editor > can edit attributes and geom > see full toolbar actions
  • Not editor and geom editor > Can't edit
  • Admin can't edit if a specific role is set in geom field setting (see gif below)
  • Many groups can be set in geom field setting if separate by a coma (ROLE_A,ROLE_B)

Other useful information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions