FIX user disabled check when anon
@@ -41,6 +41,7 @@ def get_current_user() -> Union[User, None]:
netid = decoded["netid"]
user = User.query.filter_by(netid=netid).first()
+ if user is not None:
# Check if the user is disabled
req_assert(
not user.disabled,
