From b69d210759db359fb5051b32504cfd4a4d2c52ac Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 11 Sep 2024 15:26:06 +0930 Subject: [PATCH] chore(core): remove superuser clause ref: #250 #96 #93 #95 #90 #270 --- app/core/forms/ticket_comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/forms/ticket_comment.py b/app/core/forms/ticket_comment.py index f620b5dbd..91c6df23b 100644 --- a/app/core/forms/ticket_comment.py +++ b/app/core/forms/ticket_comment.py @@ -69,7 +69,7 @@ def __init__(self, request, *args, **kwargs): self.fields['parent'].widget = self.fields['parent'].hidden_widget() self.fields['comment_type'].widget = self.fields['comment_type'].hidden_widget() - if (not self._has_import_permission or not self._has_triage_permission) and not request.user.is_superuser: + if not self._has_import_permission or not self._has_triage_permission: self.fields['source'].initial = TicketComment.CommentSource.HELPDESK self.fields['source'].widget = self.fields['source'].hidden_widget()