ofbiz-framework
ofbiz-framework copied to clipboard
Fixed: PaymentGroup Cancell button is shown to viewer (OFBIZ-12820)
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
Quality Gate passed
Issues
0 New issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
It looks like the action is simple removed for everyone instead of checking the permission?
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.