Skip to content

Commit 50cc851

Browse files
committed
fix: change user role to a list for compatibility with role relations
1 parent 1064e8b commit 50cc851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/users/serializers/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def profile(user: User, auth: Auth):
9090
"""
9191
workspace_list = get_workspace_list_by_user(user.id)
9292
user_role_relation_model = DatabaseModelManage.get_model("workspace_user_role_mapping")
93-
role_name = user.role
93+
role_name = [user.role]
9494
if user_role_relation_model:
9595
user_role_relations = (
9696
user_role_relation_model.objects

0 commit comments

Comments
 (0)