Saturday 29 June 2013

Disabling Access Control Policy in Websphere Commerce (Development Environment)

In order to disable the access control policy in your development workspace follow the steps mentioned below

1. Open wc-server.xml which is located in WCDE_ENT70\workspace\WC\xml\config\wc-server.xml
2. Search for "<Instance" tag
3. Add AccessControlUnitTest="true immediately after "<Instance "
4. Save the file
5. Restart the server

After implementing this steps the server will not complain about "User does not have authority to execute Command/View"

If you want to disable access control policy for a controller command without making the changes mentioned above you can use below line in setRequestProperties()/performExecute() method of your ControllerCommandImpl class

setAccCheck(false);

Note : Use this tip for only development purpose not in Higher Environments

No comments:

Post a Comment