Skip to content

Commit

Permalink
Fix to edit requester information
Browse files Browse the repository at this point in the history
  • Loading branch information
zgary committed Sep 26, 2017
1 parent 5d996b0 commit cbcb81e
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 cbcb81e

Please sign in to comment.