mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 03:31:27 +00:00
feat(rbac): added new validation to all routes and permission check to most
This commit is contained in:
@@ -160,7 +160,7 @@ export const getIntegrationAuthAccessHelper = async ({
|
||||
let accessId;
|
||||
let accessToken;
|
||||
const integrationAuth = await IntegrationAuth.findById(integrationAuthId).select(
|
||||
"workspace integration +accessCiphertext +accessIV +accessTag +accessExpiresAt + refreshCiphertext +accessIdCiphertext +accessIdIV +accessIdTag"
|
||||
"workspace integration +accessCiphertext +accessIV +accessTag +accessExpiresAt +refreshCiphertext +refreshIV +refreshTag +accessIdCiphertext +accessIdIV +accessIdTag"
|
||||
);
|
||||
|
||||
if (!integrationAuth)
|
||||
@@ -209,6 +209,7 @@ export const getIntegrationAuthAccessHelper = async ({
|
||||
if (!accessToken) throw InternalServerError();
|
||||
|
||||
return {
|
||||
integrationAuth,
|
||||
accessId,
|
||||
accessToken
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user