Skip to content

Commit

Permalink
chore(core): remove superuser clause
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Sep 11, 2024
1 parent eb4a58e commit b69d210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/forms/ticket_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit b69d210

Please sign in to comment.