Skip to content

Commit

Permalink
πŸ› Fix: Issue with all persons being marked as private.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Feb 23, 2022
1 parent c825047 commit adbb71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radical_translations/core/views.py
Expand Up @@ -42,7 +42,7 @@ class BaseDetailView(DetailView):
def get_object(self, queryset=None):
obj = super().get_object()

if obj.is_private() and not self.request.user.is_authenticated:
if obj.is_private and not self.request.user.is_authenticated:
raise PermissionDenied("This item is not public yet.")

return obj
Expand Down

0 comments on commit adbb71c

Please sign in to comment.