Commits

Eduard Iskandarov  committed 4d182d8

utils: fix: sso for anonymous user.

  • Participants
  • Parent commits eeb45c7

Comments (0)

Files changed (1)

File django_cackle/utils.py

 
 
 def _get_profile(user):
+    if user.is_anonymous():
+        return None
+
     try:
         return user.get_profile()
     except (SiteProfileNotAvailable, ObjectDoesNotExist):