From befcf534ce368822e4713ade0345fd1806ce2b5c Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Wed, 23 Oct 2024 14:20:47 +0530 Subject: [PATCH] fix: guest user intake issue edit validation --- web/core/components/inbox/content/root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/components/inbox/content/root.tsx b/web/core/components/inbox/content/root.tsx index 78e682340c6..7b9c3aa7570 100644 --- a/web/core/components/inbox/content/root.tsx +++ b/web/core/components/inbox/content/root.tsx @@ -64,7 +64,7 @@ export const InboxContentRoot: FC = observer((props) => { const isEditable = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT) || - inboxIssue?.created_by === currentUser?.id; + inboxIssue?.issue?.created_by === currentUser?.id; const isGuest = projectPermissionsByWorkspaceSlugAndProjectId(workspaceSlug, projectId) === EUserPermissions.GUEST; const isOwner = inboxIssue?.issue.created_by === currentUser?.id;