Skip to content

Commit

Permalink
Clarify type for permission parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 10, 2015
1 parent 71880df commit ab81d73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aiohttp_security/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def authorized_userid(request):

@asyncio.coroutine
def permits(request, permission, context=None):
assert isinstance(permission, str), permission
identity_policy = request.app.get(IDENTITY_KEY)
autz_policy = request.app.get(AUTZ_KEY)
if identity_policy is None or autz_policy is None:
Expand Down

0 comments on commit ab81d73

Please sign in to comment.