Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: PaymentGroup Cancell button is shown to viewer (OFBIZ-12820) #698

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

PierreSmits
Copy link
Member

Currently when a user with only view permissions accesses the PaymentGroup overview, as demonstrated in demo-trunk with userid=auditor, the action trigger to cancel a PaymentGroup is shown. See attached image.

modified: PaymentGroupForms.xml

  • removed action trigger field regarding cancelCheckRunPayments

Currently when a user with only view permissions accesses the PaymentGroup overview, as demonstrated in demo-trunk with userid=auditor, the action trigger to cancel a PaymentGroup is shown. See attached image.

modified: PaymentGroupForms.xml
- removed action trigger field regarding cancelCheckRunPayments
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@mbrohl
Copy link
Contributor

mbrohl commented Feb 17, 2024

It looks like the action is simple removed for everyone instead of checking the permission?

@PierreSmits
Copy link
Member Author

The trigger to cancel a PaymentGroup is still available on the page of the PaymentGroup. See https://demo-trunk.ofbiz.apache.org/accounting/control/PaymentGroupOverview?paymentGroupId=9000.

IMO, cancelling a PaymentGroup in an overview with less detail than available in the page of the PaymentGroup should be discouraged as accidental cancellations do happen.

@JacquesLeRoux JacquesLeRoux merged commit 478b8ae into apache:trunk Mar 9, 2024
5 checks passed
asfgit pushed a commit that referenced this pull request Mar 9, 2024
…698)

Currently when a user with only view permissions accesses the PaymentGroup overview, as demonstrated in demo-trunk with userid=auditor, the action trigger to cancel a PaymentGroup is shown. See attached image.

modified: PaymentGroupForms.xml
- removed action trigger field regarding cancelCheckRunPayments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants