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