Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update inject-permission.ts
Daniel Hougaard36efa6ba638c
diff --git a/backend/src/server/plugins/auth/inject-permission.ts b/backend/src/server/plugins/auth/inject-permission.tsindex 92fbfff1d1..084f181981 100644--- a/backend/src/server/plugins/auth/inject-permission.ts+++ b/backend/src/server/plugins/auth/inject-permission.ts@@ -12,8 +12,8 @@ export const injectPermission = fp(async (server) => {req.permission = {type: ActorType.USER,id: req.auth.userId,- orgId: req.auth.orgId,- authMethod: req.auth.authMethod+ orgId: req.auth.orgId, // if the req.auth.authMode is AuthMode.API_KEY, the orgId will be "API_KEY"+ authMethod: req.auth.authMethod // if the req.auth.authMode is AuthMode.API_KEY, the authMethod will be null};} else if (req.auth.actor === ActorType.IDENTITY) {req.permission = {