mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 23:28:31 +00:00
Return workspaceId in response for service token key copy
This commit is contained in:
@@ -213,7 +213,7 @@ export const getSecretByNameRaw = async (req: Request, res: Response) => {
|
||||
workspaceId: new Types.ObjectId(workspaceId),
|
||||
environment,
|
||||
secretPath,
|
||||
acceptedPermissions: [Permission.READ]
|
||||
acceptedPermissions: [Permission.READ, Permission.READ_WRITE]
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -633,7 +633,7 @@ export const getSecretByName = async (req: Request, res: Response) => {
|
||||
workspaceId: new Types.ObjectId(workspaceId),
|
||||
environment,
|
||||
secretPath,
|
||||
acceptedPermissions: [Permission.READ]
|
||||
acceptedPermissions: [Permission.READ, Permission.READ_WRITE]
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user