feat(rbac): removed audit log option for time being, v3 secret patch and reload permission flash screen fix

This commit is contained in:
Akhil Mohan
2023-09-14 21:34:13 +05:30
parent 18d843f3e6
commit 942e1a82c2
5 changed files with 14 additions and 42 deletions
@@ -55,6 +55,9 @@ export const getSecretsRaw = async (req: Request, res: Response) => {
secretPath = getFolderWithPathFromId(folder.nodes, folderId).folderPath;
}
if (!environment || !workspaceId)
throw BadRequestError({ message: "Missing environment or workspace id" });
let permissionCheckFn: (env: string, secPath: string) => boolean; // used to pass as callback function to import secret
if (req.user?._id) {
const { permission } = await getUserProjectPermissions(req.user._id, workspaceId);