Checks if a user has access to a specific app. Uses the match utility, so anything passed in for the app will be passed to the match function. The needle is a flat list of all user apps, and the haystack is what you pass into the component. You are able to check one or multiple apps, as in the example below. Note, that the has-app helper uses positional parameters to make an array, thus, your answer will always be wrapped in one array, so use this when formatting your checks.

Usage:

{{has-app 'appId'}} <!-- if the user has access to the "appId" app, this returns true -->
{{has-app 'appId1' 'appId2'}} <!-- if the user has access to either app, this returns true -->
{{has-app (array 'appId1' 'appId2')}} <!-- if the user has access to both of the apps, this returns true -->
Show: