# HG changeset patch -- Bitbucket.org # Project django-oauth # URL http://bitbucket.org/david/django-oauth/overview # User David Larlet # Date 1254903176 -7200 # Node ID dccb76f25f3f774a343b2d8f6cf09ad16f4a4d99 # Parent f1b7357ed7bad6ec8b68af8aa63e767a61b42bf2 Partly revert previous commit, authorize_access wasn't evaluated as a boolean. --- a/oauth_provider/views.py +++ b/oauth_provider/views.py @@ -87,7 +87,7 @@ def user_authorization(request): if request.session.get('oauth', '') == token.key: request.session['oauth'] = '' try: - if bool(request.POST.get('authorize_access', False)): + if int(request.POST.get('authorize_access', 0)): # authorize the token token = oauth_server.authorize_token(token, request.user) # return the token key