Skip to content

Commit 8092e9e

Browse files
committed
delete comments
1 parent 83bfc81 commit 8092e9e

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

apps/webapp/app/models/api-key.server.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
import type { PrismaClient, RuntimeEnvironment } from "@trigger.dev/database";
2-
// HostRbacController, not RoleBaseAccessController: the policy methods are
3-
// optional on the plugin-facing contract, and `rbac` (LazyController) has
4-
// already substituted the fail-closed defaults for any an installed plugin
5-
// omits. Depending on the host surface keeps this call site guard-free.
62
import type { HostRbacController } from "@trigger.dev/rbac";
73
import { trail } from "agentcrumbs"; // @crumbs
84
import { customAlphabet } from "nanoid";
@@ -122,9 +118,6 @@ export async function createEnvironmentApiKey(
122118
userId: string;
123119
name: string;
124120
expiresAt?: Date;
125-
// Required, and passed straight through to `prepareApiKeyPolicy` — callers
126-
// name the access level rather than leaning on a default that would grant
127-
// full access. Installs with no preset catalogue pass FULL_ACCESS_PRESET_ID.
128121
presetId: string;
129122
taskIdentifiers?: string[];
130123
},

apps/webapp/app/presenters/v3/ApiKeysPresenter.server.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
import { type RuntimeEnvironment } from "@trigger.dev/database";
2-
// HostRbacController, not RoleBaseAccessController: the policy methods are
3-
// optional on the plugin-facing contract, and `rbac` (LazyController) has
4-
// already substituted the fail-closed defaults for any an installed plugin
5-
// omits. Depending on the host surface keeps these call sites guard-free.
62
import { scopesGrantFullAccess, type HostRbacController } from "@trigger.dev/rbac";
73
import { type PrismaReplicaClient, $replica } from "~/db.server";
84
import { type Project } from "~/models/project.server";

0 commit comments

Comments
 (0)