Author: jleroux
Date: Mon May 20 08:17:36 2019
New Revision: 1859535

URL: http://svn.apache.org/viewvc?rev=1859535&view=rev
Log:
Improved: Have an Auditor party with associated AUDITOR SecurityGroup 
permissions in all DEMO instances
(OFBIZ-10899)

Adds auditor party and user login with only VIEW_ADMIN permission, ie only view 
permissions on the UI elements (screens/menu-items/forms and templates).

Other improvements could also occur (e.g. create buttons visible to 'VIEW' only 
permission holders) but are not part of this issue.

Thanks: Pierre Smits

Modified:
    
ofbiz/ofbiz-framework/trunk/applications/datamodel/data/demo/PartyDemoData.xml

Modified: 
ofbiz/ofbiz-framework/trunk/applications/datamodel/data/demo/PartyDemoData.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/datamodel/data/demo/PartyDemoData.xml?rev=1859535&r1=1859534&r2=1859535&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/datamodel/data/demo/PartyDemoData.xml 
(original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/datamodel/data/demo/PartyDemoData.xml 
Mon May 20 08:17:36 2019
@@ -110,5 +110,12 @@ under the License.
     <PartyRole partyId="admin" roleTypeId="CONTACT"/>
     <PartyRole partyId="Company" roleTypeId="ACCOUNT"/>
     <PartyRelationship partyIdFrom="Company" roleTypeIdFrom="ACCOUNT" 
partyIdTo="admin" roleTypeIdTo="CONTACT" fromDate="2000-01-01 00:00:00.000" 
partyRelationshipTypeId="EMPLOYMENT"/>
-
+    
+    <!-- Auditor demo data -->
+    <SecurityGroup groupName="Auditor" description="Auditors group, having 
only VIEW permissions." groupId="AUDITOR"/>
+    <Party partyId="DemoAuditor" statusId="PARTY_ENABLED" 
partyTypeId="PARTY_GROUP"/>
+    <PartyGroup partyId="DemoAuditor" groupName="Demo Auditor"/>
+    <UserLogin userLoginId="auditor" partyId="DemoAuditor" 
currentPassword="{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a"/>
+    <UserLoginSecurityGroup groupId="VIEWADMIN" userLoginId="auditor" 
fromDate="2001-01-01 12:00:00.0"/>
+    
 </entity-engine-xml>


Reply via email to