Fix: Add missing actorOrgId to service handlers

This commit is contained in:
Daniel Hougaard
2024-03-17 18:49:29 +01:00
parent 354bac486a
commit 2bd9914373
4 changed files with 4 additions and 0 deletions
@@ -711,6 +711,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
if (req.body.type !== SecretType.Personal && req.permission.type === ActorType.USER) {
const policy = await server.services.secretApprovalPolicy.getSecretApprovalPolicyOfFolder({
actorId: req.permission.id,
actorOrgId: req.permission.orgId,
actorAuthMethod: req.permission.authMethod,
actor: req.permission.type,
secretPath,