fix: inbox issue update (#1373)

This commit is contained in:
pablohashescobar 2023-06-23 17:28:13 +05:30 committed by GitHub
parent 8e094aa895
commit fef83d3153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ class InboxIssueViewSet(BaseViewSet):
pk=inbox_issue.issue_id, workspace__slug=slug, project_id=project_id
)
# Only allow guests and viewers to edit name and description
if project_member <= 10:
if project_member.role <= 10:
# viewers and guests since only viewers and guests
issue_data = {
"name": issue_data.get("name", issue.name),