Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Why does this privilege checking technique fail?

Featured Replies

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?

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

Alternatively, test for =

IsEmpty ( FilterValues ( Get (AccountPrivilegeSetName) ; "Accounting¶Order Entry & Invoicing Master¶Database Admin¶[Full Access]" ) )

Alternatively, use a Custom Extended Privilege in the desired Privilege Sets to test eligibility for running the script. That's what custom Extended privileges were designed to do.

Steven

  • Author

Thanks Steven,

Didn't even know about that. Found a good article explaining the technique in case anyone else wants to know more details.

http://www.supportgroup.com/explore/using-custom-extended-privileges/

Yes, they are very useful. Custom Extended Privileges are a way to extend the business logic of a solution across one or more Privilege Sets. They were intentionally designed specifically for that purpose.

Steven

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.