Skip to content

Commit

Permalink
Remove unneeded is_superuser check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjaclasher authored and Xyene committed Jan 4, 2019
1 parent 84aa2c1 commit fa8c704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fa8c704

Please sign in to comment.