Skip to content

Commit 96bc958

Browse files
committed
chore(webapp): drop over-explicit comments above authorize calls
1 parent 0fcced7 commit 96bc958

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

apps/webapp/app/routes/api.v1.orgs.$orgParam.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
4646
return json({ error: "Organization not found" }, { status: 404 });
4747
}
4848

49-
// Rename/delete are Owner-only (via manage:all). Membership resolution above
50-
// is the OSS floor; this is the role gate enforced when the RBAC plugin runs.
5149
const denied = await authorizePatOrganizationAccess({
5250
request,
5351
organizationId: organization.id,

apps/webapp/app/routes/api.v1.projects.$projectRef.default-region.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
5555
return json({ error: "Project not found" }, { status: 404 });
5656
}
5757

58-
// Setting a project's region is Owner-only (via manage:all).
5958
const denied = await authorizePatOrganizationAccess({
6059
request,
6160
organizationId: project.organizationId,

apps/webapp/app/routes/api.v1.projects.$projectRef.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
114114
return json({ error: "Project not found" }, { status: 404 });
115115
}
116116

117-
// Rename/delete are Owner-only (via manage:all); membership resolve above is
118-
// the OSS floor, this is the role gate when the RBAC plugin runs.
119117
const denied = await authorizePatOrganizationAccess({
120118
request,
121119
organizationId: project.organizationId,

0 commit comments

Comments
 (0)