mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 17:26:36 +00:00
feat: corrected error message
This commit is contained in:
@@ -196,7 +196,7 @@ export const permissionServiceFactory = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (orgId !== actorOrgId) {
|
if (orgId !== actorOrgId) {
|
||||||
throw new ForbiddenRequestError({ name: "You are not logged into this organization" });
|
throw new ForbiddenRequestError({ name: "You are not allowed to access organization resource" });
|
||||||
}
|
}
|
||||||
|
|
||||||
const permissionData = await permissionDAL.getPermission({
|
const permissionData = await permissionDAL.getPermission({
|
||||||
@@ -344,7 +344,7 @@ export const permissionServiceFactory = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (projectDetails.orgId !== actorOrgId) {
|
if (projectDetails.orgId !== actorOrgId) {
|
||||||
throw new ForbiddenRequestError({ name: "You are not logged into this organization" });
|
throw new ForbiddenRequestError({ name: "This project does not belong to your selected organization." });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actionProjectType !== ActionProjectType.Any && actionProjectType !== projectDetails.type) {
|
if (actionProjectType !== ActionProjectType.Any && actionProjectType !== projectDetails.type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user