Skip to content

Commit

Permalink
allow anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Apr 8, 2013
1 parent 800b48d commit 025bf6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions marteau/web/__init__.py
Expand Up @@ -18,6 +18,9 @@ def user(self):
Get the logged in user
"""
user = authenticated_userid(self)
if user is None:
return None

# if we're authenticated we want to make sure we're authorized
domains = self.registry.settings.get('authorized_domains',
'mozilla.com')
Expand Down

0 comments on commit 025bf6c

Please sign in to comment.