ofbiz-framework icon indicating copy to clipboard operation
ofbiz-framework copied to clipboard

Improved: Agreement Roles - VIEW permissions (OFBIZ-12518)

Open PierreSmits opened this issue 3 years ago • 2 comments

Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the Agreement Roles screen, sees editable fields and/or triggers (to requests) reserved for users with 'CREATE' or 'UPDATE' permissions.

To see/test: https://localhost:8443/accounting/control/EditAgreementRoles?agreementId=8000

modified:

  • AgreementScreens.xml - restructured screen EditAgreementRoles to work with permissions
  • AgreementForms.xml - added grid AgreementRoles for users with VIEW permissions additional cleanup

PierreSmits avatar Jan 22 '22 15:01 PierreSmits

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Jan 22 '22 15:01 sonarqubecloud[bot]

Hi Pierre,

thanks for your contribution!

Why did you change the specific field translation labels to common labels, e.g. uiLabelMap.PartyPartyId vs uiLabelMap.CommonParty? The field contains the partyId which makes uiLabelMap.PartyPartyId the correct label. The same applies to PartyRoleTypeId.

Can you please change this back to the specific label, thanks.

mbrohl avatar Jan 22 '22 16:01 mbrohl

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Dec 25 '22 10:12 sonarqubecloud[bot]

Hi,

I agree with Michael, but we can do otherwise, reopening

JacquesLeRoux avatar Apr 13 '24 12:04 JacquesLeRoux

Hi @JacquesLeRoux

With your label corrections you neglected the aspect that in several other screens (and templates) CommonRole and CommonParty as labels already have been applied in various forms in the codebase.

Are you with your corrections to this pull requests suggesting that contributors should favor archaic dogma over UX improvements?

PierreSmits avatar Apr 14 '24 13:04 PierreSmits

@PierreSmits,

The reason I agreed with Michael in substance is because now OFBiz is really mature. So if you change a label id you also change the possible translation people have used on their side. I hope it clarifies my position

It was a time that we discussed about labels and their content. Paradoxally in 2009, about partyPartyId label we (French people) decided to replace all "Réf. acteur" by "Acteur". Since then we have also automatically added the names of the party. So it's OK.

I just found that we kept one for MarketingTrackingCodeVisitPartyId because there it makes sense. I could not find the discussion about that but https://issues.apache.org/jira/browse/OFBIZ-2958 is relevant.

JacquesLeRoux avatar Apr 15 '24 13:04 JacquesLeRoux