[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:
parent
57eb08c8a2
commit
22b616b03c
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue