File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 22 * Sim Enterprise Edition
33 *
44 * This barrel export provides access to enterprise features.
5- * Features are designed to be optionally loaded - the core application
6- * will function without this module present .
5+ * Enterprise features are imported directly throughout the codebase, so `ee/`
6+ * must be present at build time .
77 */
88
99export * from './access-control'
Original file line number Diff line number Diff line change 44 containsUserFileWithMetadata ,
55 hydrateUserFilesWithBase64 ,
66} from '@/lib/uploads/utils/user-file-base64.server'
7- import { validateBlockType } from '@/ee/access-control/utils/permission-check'
87import { sanitizeInputFormat , sanitizeTools } from '@/lib/workflows/comparison/normalize'
8+ import { validateBlockType } from '@/ee/access-control/utils/permission-check'
99import {
1010 BlockType ,
1111 buildResumeApiUrl ,
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ export interface CredentialAccessResult {
2121 * - Authorization rules:
2222 * - session/api_key: allow if requester owns the credential; otherwise require workflowId and
2323 * verify BOTH requester and owner have access to the workflow's workspace
24- * - internal_jwt: require workflowId (by default) and verify credential owner has access to the
25- * workflow's workspace (requester identity is the system/workflow)
24+ * - internal_jwt: ALWAYS requires workflowId and verifies credential owner has access to the
25+ * workflow's workspace. Internal JWT represents automated workflow execution, not direct user
26+ * access, so owner short-circuit is intentionally skipped.
2627 */
2728export async function authorizeCredentialUse (
2829 request : NextRequest ,
You can’t perform that action at this time.
0 commit comments