innodes Posted August 15, 2007 Posted August 15, 2007 I am trying to do the following to direct the user to an appropriate layout. If [Get ( PrivilegeSetName ) = "Guest"] Go to layout ["ONE"] Else Go to layout ["TWO"] End If It is not grabbing the privilege set name however. It is just blowing down to the else statement. Any suggestions? thanks, mike
Tori Mitchell Posted August 15, 2007 Posted August 15, 2007 If you're using Advanced you can use the Data Viewer to see what that is actually evaluating to. If not, you can create a global calc that does the same thing. Make sure that you're logged into the right account to test privelage sets.
innodes Posted August 15, 2007 Author Posted August 15, 2007 (edited) Thanks. I am using advanced, and opened the data viewer. When I put in Get ( PrivilegeSetName) the Value returned is "Guest", which is the answer I was looking for. So, back to the if statement above? I am stumped, why is it not working? is there a better way to do this? Edited August 15, 2007 by Guest
Vaughan Posted August 15, 2007 Posted August 15, 2007 Check to see if the script is set to run with full access privileges. If it is, the Get ( PrivilegeSetName ) function always returns "[Full Access]" because while the script is running, that's who is running it. Also check whether the function should be Get ( PrivilegeSetName ) = "[Guest]" you are useing the built-in guest account.
innodes Posted August 16, 2007 Author Posted August 16, 2007 I don't know what it was. I re-wrote it a couple of times, debugged, etc, and after about the 7th try it started to work. User error I'm sure, but not sure what I did different. thanks for the help
The Shadow Posted August 17, 2007 Posted August 17, 2007 You must have changed your privilege set name? When I do Get(PrivilegeSetName) I see "[Read-only Access]". Maybe you want Get(AccountName) instead?
Recommended Posts
This topic is 6307 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