[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.
This commit is contained in:
Ketan Sharma 2024-10-29 19:46:20 +05:30 committed by GitHub
parent 57eb08c8a2
commit 22b616b03c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;