Hi All,
I have created a application called smartfarm in ofBiz the ofbiz-component.xml looks like this <webapp name="smartfarm" title="SMARTFARM" server="default-server" location="webapp/smartfarm" base-permission="OFBTOOLS,SMART" mount-point="/smartfarm" app-bar-display="true"/> and i am not able to access the application till i give super permission to the user. my seed data looks like this <SecurityGroup groupId="SETUP" description="Access setup screens" /> <SecurityGroup groupId="CROP" description="Access crop screens" /> <SecurityGroup groupId="CONFIG" description="Access detailed config screens" /> <SecurityGroup groupId="LOCATION" description="Access location screens" /> <SecurityPermission description="Access setup screens" permissionId="SMART_SETUP"/> <SecurityPermission description="Access crop screens" permissionId="SMART_CROP"/> <SecurityPermission description="Access detailed config screens" permissionId="SMART_CONFIG"/> <SecurityPermission description="Access location screens" permissionId="SMART_LOCATION"/> <SecurityGroupPermission groupId="SETUP" permissionId="SMART_SETUP"/> <SecurityGroupPermission groupId="CROP" permissionId="SMART_CROP"/> <SecurityGroupPermission groupId="CONFIG" permissionId="SMART_CONFIG"/> <SecurityGroupPermission groupId="LOCATION" permissionId="SMART_LOCATION"/> what is that i have to do to access the application if user have any of the permissions above? -- Raghu Chandra K R Lead Engineer NPI (New Product Initiative) Ph : 9964446854 *cropin.co.in <http://cropin.co.in>* |
Make sure the user has the OFBTOOLS permission.
Adrian Crum Sandglass Software www.sandglass-software.com On 2/27/2015 4:20 AM, Raghu Chandra wrote: > Hi All, > > I have created a application called smartfarm in ofBiz > > the ofbiz-component.xml looks like this > > <webapp name="smartfarm" > title="SMARTFARM" > server="default-server" > location="webapp/smartfarm" > base-permission="OFBTOOLS,SMART" > mount-point="/smartfarm" app-bar-display="true"/> > > and i am not able to access the application till i give super permission to > the user. > > my seed data looks like this > > <SecurityGroup groupId="SETUP" description="Access setup screens" /> > <SecurityGroup groupId="CROP" description="Access crop screens" /> > <SecurityGroup groupId="CONFIG" description="Access detailed > config screens" /> > <SecurityGroup groupId="LOCATION" description="Access location screens" /> > > <SecurityPermission description="Access setup screens" > permissionId="SMART_SETUP"/> > <SecurityPermission description="Access crop screens" > permissionId="SMART_CROP"/> > <SecurityPermission description="Access detailed config screens" > permissionId="SMART_CONFIG"/> > <SecurityPermission description="Access location screens" > permissionId="SMART_LOCATION"/> > <SecurityGroupPermission groupId="SETUP" permissionId="SMART_SETUP"/> > <SecurityGroupPermission groupId="CROP" permissionId="SMART_CROP"/> > <SecurityGroupPermission groupId="CONFIG" permissionId="SMART_CONFIG"/> > <SecurityGroupPermission groupId="LOCATION" permissionId="SMART_LOCATION"/> > > what is that i have to do to access the application if user have any of the > permissions above? > > |
In reply to this post by Raghu Chandra-2
Hi Raghu,
as far as I know, in order to allow a user to access an application, the security groups he/she is assigned to should include 'permissionPrefix_VIEW' or 'permissionPrefix_ADMIN' for EACH permissionPrefix specified in the 'base-permission' attribute of ofbiz-component.xml's element 'webapp'. In your case, the permissions to be included are: - OFBTOOLS_ADMIN or OFBTOOLS_VIEW and - SMART_ADMIN or SMART_VIEW You might find useful the following short tutorial http://www.hotwaxsystems.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-setup-permission-for-a-new-user-to-access-an-application/ Let me know if this solves your problem. Kind regards Anahita 2015-02-27 13:20 GMT+01:00 Raghu Chandra <[hidden email]>: > Hi All, > > I have created a application called smartfarm in ofBiz > > the ofbiz-component.xml looks like this > > <webapp name="smartfarm" > title="SMARTFARM" > server="default-server" > location="webapp/smartfarm" > base-permission="OFBTOOLS,SMART" > mount-point="/smartfarm" app-bar-display="true"/> > > and i am not able to access the application till i give super permission to > the user. > > my seed data looks like this > > <SecurityGroup groupId="SETUP" description="Access setup screens" /> > <SecurityGroup groupId="CROP" description="Access crop screens" /> > <SecurityGroup groupId="CONFIG" description="Access detailed > config screens" /> > <SecurityGroup groupId="LOCATION" description="Access location > screens" /> > > <SecurityPermission description="Access setup screens" > permissionId="SMART_SETUP"/> > <SecurityPermission description="Access crop screens" > permissionId="SMART_CROP"/> > <SecurityPermission description="Access detailed config screens" > permissionId="SMART_CONFIG"/> > <SecurityPermission description="Access location screens" > permissionId="SMART_LOCATION"/> > <SecurityGroupPermission groupId="SETUP" permissionId="SMART_SETUP"/> > <SecurityGroupPermission groupId="CROP" permissionId="SMART_CROP"/> > <SecurityGroupPermission groupId="CONFIG" permissionId="SMART_CONFIG"/> > <SecurityGroupPermission groupId="LOCATION" > permissionId="SMART_LOCATION"/> > > what is that i have to do to access the application if user have any of the > permissions above? > > > -- > Raghu Chandra K R > Lead Engineer NPI (New Product Initiative) > Ph : 9964446854 > > > > *cropin.co.in <http://cropin.co.in>* > |
Free forum by Nabble | Edit this page |