This commit is contained in:
xuyue committed 2025-03-18 20:19:54 +08:00
1 parent d857da26f6
commit 4e3d86c3c6
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ from .models import User, RoleChoices
class UserListSchema(ModelSchema):
@staticmethod
@classmethod
def get(cls, obj):
raw_password = obj.raw_password if obj.role == RoleChoices.NORMAL else ""
return cls(