Skip to content

Commit

Permalink
Ensure scope exists when checking employee grants.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjoconnor committed Mar 8, 2016
1 parent 35616f7 commit b6da389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/controllers/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _error_response(self, state, redirect_uri, as_fragment=False):
return self.redirect(final_redirect, code=302)

def _check_employee_grants(self, client, scope):
if not c.user.employee or not client:
if not c.user.employee or not client or not scope:
return
if client._id in g.employee_approved_clients:
return
Expand Down

0 comments on commit b6da389

Please sign in to comment.