"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateAuthorizationUtils = generateAuthorizationUtils;
function generateAuthorizationUtils() {
    return `export function hasAnyRole(userRoles: string[], requiredRoles: string[]): boolean {
  if (requiredRoles.length === 0) {
    return false
  }

  for (const role of userRoles) {
    if (requiredRoles.includes(role)) {
      return true
    }
  }

  return false
}
`;
}
//# sourceMappingURL=authorization-utils.generator.js.map