From 22b616b03cb871a2e13115884e25abcfe4f72aad Mon Sep 17 00:00:00 2001 From: Ketan Sharma Date: Tue, 29 Oct 2024 19:46:20 +0530 Subject: [PATCH] [WEB-2449] fix: admin is not able to edit issues in notifications peek overview (#5877) * fix backend * fix missing arguments for allow permissions * Revert "fix backend" This reverts commit 208636d7c8062bf921c9701d794251b0b04a5414. --- web/core/components/inbox/content/root.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/core/components/inbox/content/root.tsx b/web/core/components/inbox/content/root.tsx index 7b9c3aa75..6963ffdd0 100644 --- a/web/core/components/inbox/content/root.tsx +++ b/web/core/components/inbox/content/root.tsx @@ -63,8 +63,8 @@ export const InboxContentRoot: FC = observer((props) => { ); const isEditable = - allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT) || - inboxIssue?.issue?.created_by === currentUser?.id; + allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT, workspaceSlug, projectId) || + inboxIssue?.created_by === currentUser?.id; const isGuest = projectPermissionsByWorkspaceSlugAndProjectId(workspaceSlug, projectId) === EUserPermissions.GUEST; const isOwner = inboxIssue?.issue.created_by === currentUser?.id;