feat: corrected error message

This commit is contained in:
=
2025-11-13 12:52:41 +05:30
parent 2e64f37a2d
commit ce846fb350
@@ -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) {