Skip to content

Commit

Permalink
Remove admin role check
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fisher <[email protected]>
  • Loading branch information
Hira-Ijaz and mfisher87 authored Mar 28, 2024
1 parent cf45b9e commit b59f981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usaon_benefit_tool/routes/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get(user_id: str):
@user_bp.route('/<user_id>', 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)
Expand Down

0 comments on commit b59f981

Please sign in to comment.