mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 14:27:23 +00:00
Finish preliminary v3/secrets/raw endpoints
This commit is contained in:
@@ -16,13 +16,15 @@ const requireWorkspaceAuth = ({
|
||||
locationWorkspaceId,
|
||||
locationEnvironment = undefined,
|
||||
requiredPermissions = [],
|
||||
requireBlindIndicesEnabled = false
|
||||
requireBlindIndicesEnabled = false,
|
||||
requireE2EEOff = true
|
||||
}: {
|
||||
acceptedRoles: Array<'admin' | 'member'>;
|
||||
locationWorkspaceId: req;
|
||||
locationEnvironment?: req | undefined;
|
||||
requiredPermissions?: string[];
|
||||
requireBlindIndicesEnabled?: boolean;
|
||||
requireE2EEOff?: boolean;
|
||||
}) => {
|
||||
return async (req: Request, res: Response, next: NextFunction) => {
|
||||
const workspaceId = req[locationWorkspaceId]?.workspaceId;
|
||||
@@ -35,7 +37,8 @@ const requireWorkspaceAuth = ({
|
||||
environment,
|
||||
acceptedRoles,
|
||||
requiredPermissions,
|
||||
requireBlindIndicesEnabled
|
||||
requireBlindIndicesEnabled,
|
||||
requireE2EEOff
|
||||
});
|
||||
|
||||
if (membership) {
|
||||
|
||||
Reference in New Issue
Block a user