IUser.hasPrivilege(UserConstants.PRIV_DISCOVER, Object) Provides Wrong Result When Executed From PX
Last updated on APRIL 24, 2016
Applies to:Oracle Agile PLM Framework - Version 126.96.36.199 to 188.8.131.52 [Release 9.3]
Information in this document applies to any platform.
When using a custom action in the Agile PLM client, roles those are specified for the custom action, override the privileges of the current user.
So API IUser.hasPrivilege(UserConstants.PRIV_DISCOVER, Object) can not reflect the real privileges that user has, and returns unexpected result when executed from PX.
IUser.hasPrivilege(UserConstants.PRIV_DISCOVER, Object) returns the result of the privilege of the current user even when invoked from custom action in Agile PLM client
Steps to Reproduce
- Make sure the login user has Modify Part Privilege.
- Create a Custom PX:
Internal Custom Action = <check the user privilege using the IUser.hasPrivilege() method>;
Initiate From = Action Menu;
Roles = Role_CCB37 (this role does not have Modify Part privilege);
- Trigger the custom PX from Action Menu of Part object.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms