Stop clobbering the scope variable.

This commit is contained in:
Jake Moshenko 2014-08-06 18:51:04 -04:00
parent e0bb94e439
commit 979f78f677

View file

@ -374,7 +374,7 @@ def request_authorization_code():
}
# Show the authorization page.
has_dangerous_scopes = bool([scope for scope in scope_info if scope['dangerous']])
has_dangerous_scopes = any([check_scope['dangerous'] for check_scope in scope_info])
return render_page_template('oauthorize.html', scopes=scope_info,
has_dangerous_scopes=has_dangerous_scopes,
application=oauth_app_view,