IUser.hasPrivilege(UserConstants.PRIV_DISCOVER, Object) Provides Wrong Result When Executed From PX (Doc ID 2123452.1)

Last updated on APRIL 24, 2016

Applies to:

Oracle Agile PLM Framework - Version 9.3.3.0 to 9.3.4.0 [Release 9.3]
Information in this document applies to any platform.

Symptoms

Actual Behavior

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.

Expected Behavior

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

  1. Make sure the login user has Modify Part Privilege.
  2. 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);
  3. Trigger the custom PX from Action Menu of Part object.

Cause

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