Skip to content

Commit

Permalink
Merge pull request #226 from CityOfNewYork/hotfix/OP-1248
Browse files Browse the repository at this point in the history
Hotfix/OP-1248: Fix to edit requester information
  • Loading branch information
joelbcastillo authored Sep 26, 2017
2 parents 5d996b0 + cbcb81e commit ee62455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
event_type,
permission,
role_name,
user_type_auth,
user_type_request,
)
from app.lib.db_utils import (
Expand Down Expand Up @@ -71,7 +72,7 @@ def patch(user_id):
return jsonify({}), 404

agency_ein = request.form.get('agency_ein', None)
if agency_ein is None:
if agency_ein is None and not (auth_type == user_type_auth.ANONYMOUS_USER or 'is_super' in request.form):
return jsonify({}), 404

updating_self = current_user == user_
Expand Down

0 comments on commit ee62455

Please sign in to comment.