# HG changeset patch # User Drew DeVault # Date 1734704850 -3600 # Fri Dec 20 15:27:30 2024 +0100 # Node ID 73a8cabf36300ac3a4d3646e67605556dc93d5c3 # Parent cc910026c2f2a7d0e85fa3d3c80c3710d384d6bb manage.py: fix use of legacy UserType diff --git a/hgsrht/blueprints/manage.py b/hgsrht/blueprints/manage.py --- a/hgsrht/blueprints/manage.py +++ b/hgsrht/blueprints/manage.py @@ -162,7 +162,7 @@ valid.expect(not user or user.id != current_user.id, "You can't adjust your own access controls. You always have full read/write access.", field="user") - valid.expect(not user or user.user_type != UserType.unconfirmed, + valid.expect(not user or user.user_type != UserType.pending, "This account has not been confirmed yet.", field="user") valid.expect(not user or user.user_type != UserType.suspended, "This account has been suspended.", field="user")