Skip to content

Commit

Permalink
Removed mistaken shortcut for authorizing blank usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 4, 2012
1 parent fbab8f1 commit a862c68
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ckan/authz.py
Expand Up @@ -48,9 +48,6 @@ def is_authorized(cls, username, action, domain_object):
username = username.decode('utf8')
assert isinstance(username, unicode), type(username)

if len(username) == 0:
return False

for extension in cls.extensions:
authorized = extension.is_authorized(username,
action,
Expand Down

0 comments on commit a862c68

Please sign in to comment.