Skip to content

Commit 94ad777

Browse files
committed
fix tag defs flag
1 parent 6ef3b96 commit 94ad777

File tree

1 file changed

+2
-2
lines changed
  • apps/sim/app/api/knowledge/[id]/tag-definitions

1 file changed

+2
-2
lines changed

apps/sim/app/api/knowledge/[id]/tag-definitions/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function GET(req: NextRequest, { params }: { params: Promise<{ id:
1919
try {
2020
logger.info(`[${requestId}] Getting tag definitions for knowledge base ${knowledgeBaseId}`)
2121

22-
const auth = await checkSessionOrInternalAuth(req)
22+
const auth = await checkSessionOrInternalAuth(req, { requireWorkflowId: false })
2323
if (!auth.success) {
2424
return NextResponse.json({ error: auth.error || 'Unauthorized' }, { status: 401 })
2525
}
@@ -56,7 +56,7 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
5656
try {
5757
logger.info(`[${requestId}] Creating tag definition for knowledge base ${knowledgeBaseId}`)
5858

59-
const auth = await checkSessionOrInternalAuth(req)
59+
const auth = await checkSessionOrInternalAuth(req, { requireWorkflowId: false })
6060
if (!auth.success) {
6161
return NextResponse.json({ error: auth.error || 'Unauthorized' }, { status: 401 })
6262
}

0 commit comments

Comments
 (0)