doesLoggedInUserHaveBenefits()
Overview
public boolean function doesLoggedInUserHaveBenefits(
required array benefits
)
Returns true / false depending on whether or not a user has access to any of the supplied benefits
Arguments
Name | Type | Required | Description |
---|---|---|---|
benefits | array | Yes | Array of benefit IDs. If the logged in user has any of these benefits, the method will return true |