From b3f7112117488e635e542e01e836f61413ca8f44 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 19 Mar 2025 13:00:24 +0800 Subject: [PATCH] fix --- account/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/schemas.py b/account/schemas.py index 12ba8d3..2110310 100644 --- a/account/schemas.py +++ b/account/schemas.py @@ -8,7 +8,7 @@ from .models import User, RoleChoices class UserListSchema(ModelSchema): @classmethod def get(cls, obj): - raw_password = obj.raw_password if obj.role == RoleChoices.NORMAL else "" + raw_password = obj.raw_password if obj.role != RoleChoices.SUPER else "" return cls( id=obj.id, username=obj.username,