Author: apatel
Date: Sat Sep 20 15:07:31 2014 New Revision: 1626454 URL: http://svn.apache.org/r1626454 Log: Backporting fix from trunk r1626451 [OFBIZ-5675] Fix permission issues. Thanks Pierre Smits for bug report. Thanks Deepak Dixit for fix. Modified: ofbiz/branches/release13.07/applications/content/widget/CommonScreens.xml Modified: ofbiz/branches/release13.07/applications/content/widget/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/content/widget/CommonScreens.xml?rev=1626454&r1=1626453&r2=1626454&view=diff ============================================================================== --- ofbiz/branches/release13.07/applications/content/widget/CommonScreens.xml (original) +++ ofbiz/branches/release13.07/applications/content/widget/CommonScreens.xml Sat Sep 20 15:07:31 2014 @@ -56,7 +56,7 @@ under the License. <decorator-section name="pre-body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <include-menu name="cms" location="component://content/widget/cms/CMSMenus.xml"/> @@ -66,13 +66,13 @@ under the License. <decorator-section name="body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <decorator-section-include name="body"/> </widgets> <fail-widgets> - <label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label> + <label style="h3">${uiLabelMap.ContentViewPermissionError}</label> </fail-widgets> </section> </decorator-section> @@ -91,7 +91,7 @@ under the License. <decorator-section name="pre-body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <include-menu name="content" location="component://content/widget/content/ContentMenus.xml"/> @@ -101,7 +101,7 @@ under the License. <decorator-section name="body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <container> @@ -123,7 +123,7 @@ under the License. </container> </widgets> <fail-widgets> - <label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label> + <label style="h3">${uiLabelMap.ContentViewPermissionError}</label> </fail-widgets> </section> </decorator-section> @@ -142,7 +142,7 @@ under the License. <decorator-section name="pre-body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <include-menu name="contentTopMenu" location="component://content/widget/content/ContentMenus.xml"/> @@ -152,7 +152,7 @@ under the License. <decorator-section name="body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <container style="no-clear"> @@ -160,7 +160,7 @@ under the License. </container> </widgets> <fail-widgets> - <label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label> + <label style="h3">${uiLabelMap.ContentViewPermissionError}</label> </fail-widgets> </section> </decorator-section> @@ -181,7 +181,7 @@ under the License. <decorator-section name="pre-body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <include-menu name="dataresourceTopMenu" location="component://content/widget/content/DataResourceMenus.xml"/> @@ -191,7 +191,7 @@ under the License. <decorator-section name="body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <section> @@ -208,7 +208,7 @@ under the License. </container> </widgets> <fail-widgets> - <label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label> + <label style="h3">${uiLabelMap.ContentViewPermissionError}</label> </fail-widgets> </section> </decorator-section> @@ -246,7 +246,7 @@ under the License. <decorator-section name="pre-body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <include-menu name="contentsetup" location="component://content/widget/contentsetup/ContentSetupMenus.xml"/> @@ -256,13 +256,13 @@ under the License. <decorator-section name="body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <decorator-section-include name="body"/> </widgets> <fail-widgets> - <label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label> + <label style="h3">${uiLabelMap.ContentViewPermissionError}</label> </fail-widgets> </section> </decorator-section> @@ -281,7 +281,7 @@ under the License. <decorator-section name="pre-body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <include-menu name="dataresourcesetup" location="component://content/widget/datasetup/DataResourceSetupMenus.xml"/> @@ -291,13 +291,13 @@ under the License. <decorator-section name="body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <decorator-section-include name="body"/> </widgets> <fail-widgets> - <label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label> + <label style="h3">${uiLabelMap.ContentViewPermissionError}</label> </fail-widgets> </section> </decorator-section> @@ -361,7 +361,7 @@ under the License. <decorator-section name="pre-body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <include-menu name="layout" location="component://content/widget/layout/LayoutMenus.xml"/> @@ -371,13 +371,13 @@ under the License. <decorator-section name="body"> <section> <condition> - <if-has-permission permission="CONTENTMGR" action="_UPDATE"/> + <if-has-permission permission="CONTENTMGR" action="_VIEW"/> </condition> <widgets> <decorator-section-include name="body"/> </widgets> <fail-widgets> - <label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label> + <label style="h3">${uiLabelMap.ContentViewPermissionError}</label> </fail-widgets> </section> </decorator-section> |
Free forum by Nabble | Edit this page |