Merge pull request #155 from barseghyanartur/patch-1

Update user.py
This commit is contained in:
Héctor Velarde 2014-01-22 09:07:23 -08:00
commit 4700aaa29c
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ def is_anonymous():
:rtype: bool
:Example: :ref:`user_is_anonymous_example`
"""
return portal.get_tool('portal_membership').isAnonymousUser()
return bool(portal.get_tool('portal_membership').isAnonymousUser())
@mutually_exclusive_parameters('username', 'user')