March 27, 200916 yr I created a script to either exit the application or take the user to the administration page depending on layout and privileges. But the script is not working well. This is the script: If[(Get(PrivilegeSetName)="Admin") or (Get(PrivilegeSetName)="[Full Access]")] If[Get(LayoutName) ≠ "Family File (Admin)"] Go to Layout ["Family File (Admin)" (Preferences)] Exit Script[] Endif Endif Exit Application The script is set to run in full access privileges. When the user is neither Admin nor [Full Access] it evaluates the first if statement as true. I could not find the error in the code. I checked everything in the data viewer and all was correct, but it still evaluates the first if as true. Edited March 27, 200916 yr by Guest
March 27, 200916 yr The script is set to run in full access privileges. That would do it. In the context of a script, the Get(PrivilegeSetName) function returns the script's privileges, not the user's.
Create an account or sign in to comment