Jump to content

How do I abort a script that takes a user to a related file that he does not have ...


This topic is 8177 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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 .

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 8177 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.