Author: hansbak
Date: Wed Jun 19 08:06:52 2013
New Revision: 1494491
URL:
http://svn.apache.org/r1494491Log:
missng security check for add accounting company
Modified:
ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml
Modified: ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml?rev=1494491&r1=1494490&r2=1494491&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml Wed Jun 19 08:06:52 2013
@@ -1314,8 +1314,10 @@ under the License.
</menu>
<menu name="newAccountOrganization">
<menu-item name="addCompany" title="${uiLabelMap.AccountingNewCompany}">
- <link target="AddCompany" link-type="auto">
- </link>
+ <condition>
+ <if-compare field="hasPrefPermission" operator="equals" value="true" type="Boolean"/>
+ </condition>
+ <link target="AddCompany" link-type="auto"/>
</menu-item>
</menu>
</menus>