schiang

Get(currentprivilegesetname) during Run script with full access privileges

Discussion created by schiang on Jul 11, 2013
Latest reply on Jul 11, 2013 by schiang

Hi,

 

I just want to share if you use Get(CurrentPrivilegeSetName) in the script with "Run script with full access privileges" enabled.

 

 

$privilege=Get(CurrentPrivilegeSetName)

if (Get(CurrentPrivilegeSetName) ="[Full Access]")

Action 1

else

Action 2

 

$privilege will be always "[Full Access]", no matter what your current PrivilegeSetName is.

But in Data Viewer it will show your actual PrivilegeSetName by Get(CurrentPrivilegeSetName) .

 

My conclusion is, don't use Get(CurrentPrivilegeSetName) in the script for any calculation purpose if you have turned on its "Run script with Full access privileges".

 

This was driving my crazy when I accidently turned on "Run script with full access privileges"

 

Steven

Outcomes