X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/beb5154606f790915bc56b9cb8af824537cc7d7a..09ac89c30a2ab3eea1995ac78e72eae94c7a3f39:/src/social/utils.py?ds=inline diff --git a/src/social/utils.py b/src/social/utils.py index e713fcdbc..67bc867fa 100644 --- a/src/social/utils.py +++ b/src/social/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -15,7 +14,7 @@ from social.models import Cite def likes(user, work, request=None): - if not user.is_authenticated(): + if not user.is_authenticated: return False if request is None: