hasAnyPermission
Checks if this feature has at least one of the specified permissions.
Returns true if the feature's permission set contains any of the provided permissions. Useful for checking if a user with any of the given roles can access this feature.
Example:
// Check if feature requires admin or moderator access
if (feature.hasAnyPermission("ADMIN", "MODERATOR")) {
// Feature requires elevated privileges
checkUserElevatedAccess()
}Content copied to clipboard
Return
true if at least one permission is in Feature.permissions, false otherwise
Parameters
permissions
the permissions to check for