From fa8c70490b026301afb10977dae39da0c9a539c4 Mon Sep 17 00:00:00 2001 From: Evan Zhang Date: Fri, 4 Jan 2019 14:49:52 -0500 Subject: [PATCH] Remove unneeded is_superuser check --- judge/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/comments.py b/judge/comments.py index 91e2509fcd..5bc456e4e3 100644 --- a/judge/comments.py +++ b/judge/comments.py @@ -62,7 +62,7 @@ def get_comment_page(self): def is_comment_locked(self): return (CommentLock.objects.filter(page=self.get_comment_page()).exists() and - not (self.request.user.is_superuser or self.request.user.has_perm('judge.override_comment_lock'))) + not self.request.user.has_perm('judge.override_comment_lock')) @method_decorator(login_required) def post(self, request, *args, **kwargs):