From 81df0433bbc5dddb046a2b5ffa29192549e79878 Mon Sep 17 00:00:00 2001 From: Pierre Smits Date: Thu, 20 Jan 2022 13:08:19 +0100 Subject: [PATCH] Improved: Catalog Screen - VIEW permissions (OFBIZ-12491) (#444) Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the catalog screen, sees editable fields and/or triggers (to requests) reserved for users with 'CREATE' or 'UPDATE' permissions. See (test with): https://localhost:8443/catalog/control/EditProdCatalog?prodCatalogId=DemoCatalog modified: - CatalogScreens.xml restructured screen EditProductCatalog vis-a-vis permissions - ProdCatalogForms.xml added form Catalog for users with VIEW permission --- .../product/widget/catalog/CatalogScreens.xml | 25 ++++++++++++++++--- .../widget/catalog/ProdCatalogForms.xml | 13 +++------- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/applications/product/widget/catalog/CatalogScreens.xml b/applications/product/widget/catalog/CatalogScreens.xml index d5e753d274..12be798246 100644 --- a/applications/product/widget/catalog/CatalogScreens.xml +++ b/applications/product/widget/catalog/CatalogScreens.xml @@ -59,10 +59,27 @@ under the License. - - - - +
+ + + + + + + + + + + + + + + + + + + +
diff --git a/applications/product/widget/catalog/ProdCatalogForms.xml b/applications/product/widget/catalog/ProdCatalogForms.xml index 88807fc472..11ebadc43f 100644 --- a/applications/product/widget/catalog/ProdCatalogForms.xml +++ b/applications/product/widget/catalog/ProdCatalogForms.xml @@ -20,6 +20,10 @@ under the License. +
+ +
@@ -28,7 +32,6 @@ under the License. - @@ -56,34 +59,26 @@ under the License.
- - - - - - - -