Skip to content

Commit 08922f3

Browse files
committed
lint
1 parent e8157c0 commit 08922f3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

apps/sim/ee/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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

99
export * from './access-control'

apps/sim/executor/execution/block-executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
containsUserFileWithMetadata,
55
hydrateUserFilesWithBase64,
66
} from '@/lib/uploads/utils/user-file-base64.server'
7-
import { validateBlockType } from '@/ee/access-control/utils/permission-check'
87
import { sanitizeInputFormat, sanitizeTools } from '@/lib/workflows/comparison/normalize'
8+
import { validateBlockType } from '@/ee/access-control/utils/permission-check'
99
import {
1010
BlockType,
1111
buildResumeApiUrl,

apps/sim/lib/credential-sets/credential-access.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
2728
export async function authorizeCredentialUse(
2829
request: NextRequest,

0 commit comments

Comments
 (0)