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 2019/11/16 07:39:42 UTC
svn commit: r1869887 - in /ofbiz/branches/release16.11:
applications/accounting/widget/ applications/accounting/widget/ap/
applications/accounting/widget/ar/ applications/humanres/widget/
applications/order/widget/ordermgr/ applications/product/widget/...
Author: jacopoc
Date: Sat Nov 16 07:39:42 2019
New Revision: 1869887
URL: http://svn.apache.org/viewvc?rev=1869887&view=rev
Log:
Fixed: Add missing view permissions checks to various screens.
Modified:
ofbiz/branches/release16.11/applications/accounting/widget/CommonScreens.xml
ofbiz/branches/release16.11/applications/accounting/widget/ap/CommonScreens.xml
ofbiz/branches/release16.11/applications/accounting/widget/ar/CommonScreens.xml
ofbiz/branches/release16.11/applications/humanres/widget/CommonScreens.xml
ofbiz/branches/release16.11/applications/order/widget/ordermgr/OrderViewScreens.xml
ofbiz/branches/release16.11/applications/product/widget/catalog/CommonScreens.xml
ofbiz/branches/release16.11/specialpurpose/bi/widget/BiScreens.xml
ofbiz/branches/release16.11/specialpurpose/scrum/widget/scrumScreens.xml
ofbiz/branches/release16.11/specialpurpose/webpos/widget/WebPosScreens.xml
Modified: ofbiz/branches/release16.11/applications/accounting/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/accounting/widget/CommonScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/accounting/widget/CommonScreens.xml (original)
+++ ofbiz/branches/release16.11/applications/accounting/widget/CommonScreens.xml Sat Nov 16 07:39:42 2019
@@ -268,6 +268,9 @@ under the License.
<screen name="main">
<section>
+ <condition>
+ <if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
+ </condition>
<actions>
<set field="headerItem" value="main"/>
<entity-condition entity-name="PaymentType" list="paymentTypes">
Modified: ofbiz/branches/release16.11/applications/accounting/widget/ap/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/accounting/widget/ap/CommonScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/accounting/widget/ap/CommonScreens.xml (original)
+++ ofbiz/branches/release16.11/applications/accounting/widget/ap/CommonScreens.xml Sat Nov 16 07:39:42 2019
@@ -40,6 +40,9 @@ under the License.
<screen name="main">
<section>
+ <condition>
+ <if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
+ </condition>
<actions>
<set field="tabButtonItem" value="main"></set>
<set field="invoiceTypeId" value="PURCHASE_INVOICE"/>
Modified: ofbiz/branches/release16.11/applications/accounting/widget/ar/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/accounting/widget/ar/CommonScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/accounting/widget/ar/CommonScreens.xml (original)
+++ ofbiz/branches/release16.11/applications/accounting/widget/ar/CommonScreens.xml Sat Nov 16 07:39:42 2019
@@ -42,6 +42,9 @@ under the License.
<screen name="main">
<section>
+ <condition>
+ <if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
+ </condition>
<actions>
<set field="tabButtonItem" value="main"/>
<set field="invoiceTypeId" value="SALES_INVOICE"/>
Modified: ofbiz/branches/release16.11/applications/humanres/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/humanres/widget/CommonScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/humanres/widget/CommonScreens.xml (original)
+++ ofbiz/branches/release16.11/applications/humanres/widget/CommonScreens.xml Sat Nov 16 07:39:42 2019
@@ -56,6 +56,9 @@ under the License.
<decorator-screen name="main-decorator">
<decorator-section name="body">
<section>
+ <condition>
+ <if-has-permission permission="HUMANRES" action="_VIEW"/>
+ </condition>
<widgets>
<container style="lefthalf">
<include-screen name="OrgTree"/>
Modified: ofbiz/branches/release16.11/applications/order/widget/ordermgr/OrderViewScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/order/widget/ordermgr/OrderViewScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/order/widget/ordermgr/OrderViewScreens.xml (original)
+++ ofbiz/branches/release16.11/applications/order/widget/ordermgr/OrderViewScreens.xml Sat Nov 16 07:39:42 2019
@@ -35,6 +35,9 @@ under the License.
</screen>
<screen name="Main">
<section>
+ <condition>
+ <if-has-permission permission="ORDERMGR" action="_VIEW"/>
+ </condition>
<actions>
<set field="headerItem" value="main"/>
</actions>
Modified: ofbiz/branches/release16.11/applications/product/widget/catalog/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/product/widget/catalog/CommonScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/product/widget/catalog/CommonScreens.xml (original)
+++ ofbiz/branches/release16.11/applications/product/widget/catalog/CommonScreens.xml Sat Nov 16 07:39:42 2019
@@ -58,8 +58,15 @@ under the License.
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="left-column">
- <include-screen name="leftbar"/>
- </decorator-section>
+ <section>
+ <condition>
+ <if-service-permission service-name="catalogPermissionCheck" main-action="VIEW"/>
+ </condition>
+ <widgets>
+ <include-screen name="leftbar"/>
+ </widgets>
+ </section>
+ </decorator-section>
<decorator-section name="body">
<section>
<condition>
@@ -112,8 +119,15 @@ under the License.
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="left-column">
- <include-screen name="leftbar"/>
- </decorator-section>
+ <section>
+ <condition>
+ <if-service-permission service-name="catalogPermissionCheck" main-action="VIEW"/>
+ </condition>
+ <widgets>
+ <include-screen name="leftbar"/>
+ </widgets>
+ </section>
+ </decorator-section>
<decorator-section name="body">
<section>
<condition>
@@ -362,7 +376,14 @@ under the License.
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="left-column">
- <include-screen name="leftbar"/>
+ <section>
+ <condition>
+ <if-service-permission service-name="catalogPermissionCheck" main-action="VIEW"/>
+ </condition>
+ <widgets>
+ <include-screen name="leftbar"/>
+ </widgets>
+ </section>
</decorator-section>
<decorator-section name="body">
<screenlet title="${uiLabelMap.ProductCatalogAdministrationMainPage}">
Modified: ofbiz/branches/release16.11/specialpurpose/bi/widget/BiScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/specialpurpose/bi/widget/BiScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/specialpurpose/bi/widget/BiScreens.xml (original)
+++ ofbiz/branches/release16.11/specialpurpose/bi/widget/BiScreens.xml Sat Nov 16 07:39:42 2019
@@ -99,6 +99,9 @@ under the License.
<screen name="main">
<section>
+ <condition>
+ <if-has-permission permission="BI" action="_VIEW"/>
+ </condition>
<actions>
<set field="titleProperty" value="BusinessIntelligenceMainPage"/>
<set field="headerItem" value="main"/>
Modified: ofbiz/branches/release16.11/specialpurpose/scrum/widget/scrumScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/specialpurpose/scrum/widget/scrumScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/specialpurpose/scrum/widget/scrumScreens.xml (original)
+++ ofbiz/branches/release16.11/specialpurpose/scrum/widget/scrumScreens.xml Sat Nov 16 07:39:42 2019
@@ -1542,6 +1542,9 @@ under the License.
</screen>
<screen name="ScrumProduct">
<section>
+ <condition>
+ <if-has-permission permission="SCRUM" action="_VIEW"/>
+ </condition>
<actions>
<set field="titleProperty" value="PageTitleProduct"/>
<set field="noConditionFind" value="Y"/>
Modified: ofbiz/branches/release16.11/specialpurpose/webpos/widget/WebPosScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/specialpurpose/webpos/widget/WebPosScreens.xml?rev=1869887&r1=1869886&r2=1869887&view=diff
==============================================================================
--- ofbiz/branches/release16.11/specialpurpose/webpos/widget/WebPosScreens.xml (original)
+++ ofbiz/branches/release16.11/specialpurpose/webpos/widget/WebPosScreens.xml Sat Nov 16 07:39:42 2019
@@ -23,6 +23,9 @@ under the License.
<screen name="Main">
<section>
+ <condition>
+ <if-has-permission permission="WEBPOS" action="_VIEW"/>
+ </condition>
<actions>
<set field="titleProperty" value="WebPosMenuMain"/>
<set field="leftbarScreenName" value="LeftBar"/>