levonk Posted March 27, 2009 Posted March 27, 2009 (edited) 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, 2009 by Guest
comment Posted March 27, 2009 Posted March 27, 2009 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.
Recommended Posts
This topic is 5777 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now