SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 12a212c4 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Debug Note manager

parent d194782b
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class NotesQuerySet(models.QuerySet):
Filter out notes which are not visible to the given user.
"""
if user is None:
if user is None or not user.is_authenticated:
# Without specifying a user, only public notes are visible
return self.filter(visibility=self.model.VISIBILITY_PUBLIC)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment