function isUnrestrictedOrganizationScope(input) {
  return input.isSuperAdmin || input.allowedOrganizationIds === null;
}
function isOrganizationAccessAllowed(input) {
  if (isUnrestrictedOrganizationScope(input)) return true;
  if (!input.targetOrganizationId) return false;
  return (input.allowedOrganizationIds ?? []).includes(input.targetOrganizationId);
}
export {
  isOrganizationAccessAllowed,
  isUnrestrictedOrganizationScope
};
//# sourceMappingURL=organizationAccess.js.map
