cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Modify related objects but not attributes in Released state

Marble

Modify related objects but not attributes in Released state

Hello,

is there a way to make a part's attributes not to be editable in release state, but the "Described by Documents" to be still editable?

The desired scenario is: the part goes through the release process and will be locked for modifying with one exception: in the table "Described By Documents" the user with a specific role should be able to add Released documents. The "modify" ACL is not good in this case because it will give attribute edit permission also.

Is there a way in Java code to bypass the ACL?

BR,

Tamás

1 REPLY 1

Re: Modify related objects but not attributes in Released state

Hi Tamas,

There is a function called setAccesEnforced() to temporarily enable/disable access control rules (ACL). I quote the description of this function from Java documentation:

boolean setAccessEnforced(boolean enforce)

"Suspends or resumes all access & authorization enforcement. If the argument is false then access/authorization enforcement is suspended; otherwise it is resumed. The method returns true if the access/authorization checks are being enforced or false otherwise.

This method can be used to temporarily suspend access/authorization enforcement using a try/finally block, in which the enforcement is suspended in the try block and restored in the finally block. The return value can be used to restore the value to whatever it was before the enforcement was suspended."

SessionServerHelper.manager.setAccessEnforced(false); - disables access control

SessionServerHelper.manager.setAccessEnforced(true); - enables access control



Announcements
LiveWorx Call For Papers Happening Now!