Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-2449] fix: admin is not able to edit issues in notifications peek overview (#5877)

Ketan Sharma22b616b03cb8
diff --git a/web/core/components/inbox/content/root.tsx b/web/core/components/inbox/content/root.tsx
index 7b9c3aa757..6963ffdd0c 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<TInboxContentRoot> = 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;