From cbcb81ed74feb9e7348509f9835bfdea411c5161 Mon Sep 17 00:00:00 2001 From: Gary Zhou Date: Tue, 26 Sep 2017 16:30:08 -0400 Subject: [PATCH] Fix to edit requester information --- app/user/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/user/views.py b/app/user/views.py index d1e873552..29fb1dd84 100644 --- a/app/user/views.py +++ b/app/user/views.py @@ -13,6 +13,7 @@ event_type, permission, role_name, + user_type_auth, user_type_request, ) from app.lib.db_utils import ( @@ -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_