You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2026/05/10 08:14:45 UTC

(ofbiz-framework) 01/03: Fixed: Update permission checks in CommonScreens.xml for webtools access

This is an automated email from the ASF dual-hosted git repository.

jacopoc pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git

commit c09ee1cdad7ad19532919722a7ab897788a49edf
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Sun May 10 09:28:02 2026 +0200

    Fixed: Update permission checks in CommonScreens.xml for webtools access
---
 framework/webtools/widget/CommonScreens.xml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/framework/webtools/widget/CommonScreens.xml b/framework/webtools/widget/CommonScreens.xml
index 17dd97b31d..c9c4952666 100644
--- a/framework/webtools/widget/CommonScreens.xml
+++ b/framework/webtools/widget/CommonScreens.xml
@@ -153,7 +153,7 @@ under the License.
                     <decorator-section name="pre-body">
                         <section>
                             <condition>
-                                <if-has-permission permission="WEBTOOLS" action="_VIEW"/>
+                                <if-has-permission permission="SERVICE_MAINT"/>
                             </condition>
                             <widgets>
                                 <include-menu name="ServiceTabBar" location="component://webtools/widget/Menus.xml"/>
@@ -164,7 +164,7 @@ under the License.
                         <section>
                             <!-- do check for WEBTOOLS, _VIEW permission -->
                             <condition>
-                                <if-has-permission permission="WEBTOOLS" action="_VIEW"/>
+                                <if-has-permission permission="SERVICE_MAINT"/>
                             </condition>
                             <widgets>
                                 <decorator-section-include name="body"/>
@@ -297,7 +297,7 @@ under the License.
                     <decorator-section name="pre-body">
                         <section>
                             <condition>
-                                <if-has-permission permission="WEBTOOLS" action="_VIEW"/>
+                                <if-has-permission permission="PORTALPAGE_ADMIN"/>
                             </condition>
                             <widgets>
                                 <include-menu name="GeoManagement" location="component://webtools/widget/Menus.xml"/>
@@ -306,9 +306,8 @@ under the License.
                     </decorator-section>
                     <decorator-section name="body">
                         <section>
-                            <!-- do check for WEBTOOLS, _VIEW permission -->
                             <condition>
-                                <if-has-permission permission="WEBTOOLS" action="_VIEW"/>
+                                <if-has-permission permission="PORTALPAGE_ADMIN"/>
                             </condition>
                             <widgets>
                                 <decorator-section-include name="body"/>