From b59f98120465c36ea4ffb8f7e7cca132bdc4fbe7 Mon Sep 17 00:00:00 2001 From: Hira Ijaz <146934091+Hira-Ijaz@users.noreply.github.com> Date: Thu, 28 Mar 2024 05:47:46 +0500 Subject: [PATCH] Remove admin role check Co-authored-by: Matt Fisher --- usaon_benefit_tool/routes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usaon_benefit_tool/routes/user.py b/usaon_benefit_tool/routes/user.py index 4f28dd23..ba3a277e 100644 --- a/usaon_benefit_tool/routes/user.py +++ b/usaon_benefit_tool/routes/user.py @@ -31,7 +31,7 @@ def get(user_id: str): @user_bp.route('/', methods=['POST']) @login_required def post(user_id: str): - if user_id != current_user.id and current_user.role_id != RoleName.ADMIN: + if user_id != current_user.id: forbid_except_for_roles([RoleName.ADMIN]) user = db.get_or_404(User, user_id)