Commits

Eduard Iskandarov committed 4d182d8

utils: fix: sso for anonymous user.

Comments (0)

Files changed (1)

django_cackle/utils.py

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