Jump to content

Why does this privilege checking technique fail?


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

Recommended Posts

Hi,

I have a script in Filemaker 12 and want to check for privilege before proceeding with rest of it.

It looks like this:

Set Variable [ $AccountPriv; Value: Get(AccountPrivilegeSetName) ]

If [ $AccountPriv ≠ "Accounting" or

"Order Entry & Invoicing Master" or

"Database Admin" or

"[Full Access]" ]

Show Custom Dialog [ message: "you do not have privileges to delete this..."; Default Button: "OK", Commit: "Yes" ]

Exit Script [ ]

End If

Can I not check against multiple privileges like this?

Link to comment
Share on other sites

If [ $AccountPriv ≠ "Accounting" or

$AccountingPriv = "Order Entry & Invoicing Master" or

$AccountingPriv = "Database Admin" or

$AccountingPriv = "[Full Access]" ]

you gotta specify all the criteria for each evaluation of the contents of $AccountingPriv

  • Like 1
Link to comment
Share on other sites

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