mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: corrected error message
This commit is contained in:
@@ -196,7 +196,7 @@ export const permissionServiceFactory = ({
|
||||
}
|
||||
|
||||
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({
|
||||
@@ -344,7 +344,7 @@ export const permissionServiceFactory = ({
|
||||
});
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user