November 28, 200124 yr I have a navigation file that shows users how to go to related files by pressing a button that executes a script that takes them to a related file. I want to ammend the script to see first if they have access to any of the layouts in the file, and then, if not, abort the script and show them a message .
November 28, 200124 yr I guess your question is how to do this, I missed the "?". You can test for Status(CurrentGroup), this should tell you if the user has access to a particular layout (as defined by their group). -bd
November 28, 200124 yr Author bd, Thanks for the help, that worked fine for all of the enduser groups defined, but I have found one problem. And the question is as follows: When I logon with a password that allows access to the entire file, the script returns my message that I don't have access. How can this be?
November 28, 200124 yr The master password belongs to all groups. When you log in with the master password, a test for any group will return true. You should make a group to which only the master password belongs and test for this group first. Have a look at the value returned by Status(CurrentGroups).
November 28, 200124 yr quote: Originally posted by Thom: The master password belongs to all groups. When you log in with the master password, a test for any group will return true. You should make a group to which only the master password belongs and test for this group first. Have a look at the value returned by Status(CurrentGroups). One of the calcs I use most often for this sort of thing is PatternCount (Status(CurrentGroups), "<GroupName>") = 1 The 1 could be a 0, depending on whether you are checking to see if the user is in a group or isn't.
Create an account or sign in to comment