Merge pull request #3665 from Infisical/allow-machine-to-read-billing

Allow machine identity to read billing
This commit is contained in:
Maidul Islam
2025-05-27 22:36:29 -04:00
committed by GitHub
+1 -1
View File
@@ -47,7 +47,7 @@ export const registerLicenseRouter = async (server: FastifyZodProvider) => {
200: z.object({ plan: z.any() }) 200: z.object({ plan: z.any() })
} }
}, },
onRequest: verifyAuth([AuthMode.JWT]), onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => { handler: async (req) => {
const plan = await server.services.license.getOrgPlan({ const plan = await server.services.license.getOrgPlan({
actorId: req.permission.id, actorId: req.permission.id,