Skip to content

Commit

Permalink
Fix auth issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Mar 28, 2017
1 parent 3a3dfa5 commit 27ae09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/auth/local/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
def get_default_user():
try:
# Assume authentication is anonymous if only 1 user
if User.objects.count() == 1:
if User.objects.count() < 2:
return User.objects.get(username="yeti")
return AnonymousUserMixin()
except DoesNotExist:
Expand Down

0 comments on commit 27ae09f

Please sign in to comment.