throwOnUnauthorizedTenant method

void throwOnUnauthorizedTenant(
  1. Map<String, dynamic> meta,
  2. DbPrincipal principal
)

Implementation

void throwOnUnauthorizedTenant(
    Map<String, dynamic> meta, DbPrincipal principal) {
  if (meta['tenantKey'] != principal.tenantKey) {
    throw Unauthorized();
  }
}