From 4a2bc462060b04fe7e9100ae2407f0a0234b6572 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sat, 13 Apr 2024 20:02:59 -0500 Subject: [PATCH] Fix typo --- judge/models/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/models/comment.py b/judge/models/comment.py index bd78338..00e499d 100644 --- a/judge/models/comment.py +++ b/judge/models/comment.py @@ -83,7 +83,7 @@ class Comment(MPTTModel): if organization: queryset = queryset.filter(author__in=organization.members.all()) - object_access = CacheDict(lambda p: p.is_accessible_by(user)) + problem_access = CacheDict(lambda p: p.is_accessible_by(user)) contest_access = CacheDict(lambda c: c.is_accessible_by(user)) blog_access = CacheDict(lambda b: b.is_accessible_by(user))