Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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


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

Recommended Posts

Posted

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 .

Posted

I guess your question is how to do this, I missed the "?". wink.gif" border="0

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

Posted

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?

Posted

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

Posted

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.

This topic is 8400 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.