mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
add logs to track permission inject
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import fp from "fastify-plugin";
|
||||
|
||||
import { logger } from "@app/lib/logger";
|
||||
import { ActorType } from "@app/services/auth/auth-type";
|
||||
|
||||
// inject permission type needed based on auth extracted
|
||||
@@ -37,5 +38,7 @@ export const injectPermission = fp(async (server) => {
|
||||
authMethod: null
|
||||
};
|
||||
}
|
||||
|
||||
logger.info(`injectPermission: Injecting permissions for [permissionsForIdentity=${req?.permission?.id}]`);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user