ems-frontend icon indicating copy to clipboard operation
ems-frontend copied to clipboard

Feat 2.1.x/ab#70943 allow multiple fields update when editing role permissions

Open NathanHGit opened this issue 2 years ago • 0 comments

Description

Added the ability to edit resource field permissions for multiple fields at once for a role. For this I added checkboxes in the fields table of a resource to allow multiple selection and added a button that opens a modal that allows you to define the different permissions (view and update). Update permission is automatically removed if view permission is not granted (should not be accessed).

Ticket

Ticker: 70943 - Allow multiple fields to be updated at same time when editing role permissions Backend PR #687

Type of change

  • [X] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

I have tried changing several field permissions through the "set permissions" modal. I tried adding or removing each permission with different groups of fields.

Screenshots

peek

Checklist:

( * == Mandatory )

  • [X] * My code follows the style guidelines of this project
  • [X] * Linting does not generate new warnings
  • [X] * I have performed a self-review of my own code
  • [X] * I have commented my code, particularly in hard-to-understand areas
  • [X] * I have put JSDoc comment in all required places
  • [X] * My changes generate no new warnings
  • [X] * I have included screenshots describing my changes if relevant
  • [X] * I have included screenshots describing my changes if relevant
  • [X] * I have selected labels in the Pull Request, according to the changes with code brings
  • [ ] I have made corresponding changes to the documentation ( if required )
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

NathanHGit avatar Jul 28 '23 14:07 NathanHGit