Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix: Better type checking

Daniel Hougaard7e2685d60448
diff --git a/backend/src/ee/services/permission/permission-service.ts b/backend/src/ee/services/permission/permission-service.ts
index e6f0f5a2b6..737571fad1 100644
--- a/backend/src/ee/services/permission/permission-service.ts
+++ b/backend/src/ee/services/permission/permission-service.ts
@@ -135,7 +135,7 @@ export const permissionServiceFactory = ({
id: string,
orgId: string,
authMethod: ActorAuthMethod,
- actorOrgId?: string
+ actorOrgId: string | undefined
) => {
switch (type) {
case ActorType.USER:
@@ -259,7 +259,7 @@ export const permissionServiceFactory = ({
id: string,
projectId: string,
actorAuthMethod: ActorAuthMethod,
- actorOrgId?: string
+ actorOrgId: string | undefined
): Promise<TProjectPermissionRT<T>> => {
switch (type) {
case ActorType.USER: