mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: guest user intake issue edit validation (#5898)
This commit is contained in:
committed by
GitHub
parent
6df98099f5
commit
84c06c4713
@@ -64,7 +64,7 @@ export const InboxContentRoot: FC<TInboxContentRoot> = 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;
|
||||
|
||||
Reference in New Issue
Block a user