diff --git a/endpoints/web.py b/endpoints/web.py index fd6db64ca..19f9bb7f1 100644 --- a/endpoints/web.py +++ b/endpoints/web.py @@ -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,