fix: change user role to a list for compatibility with role relations
This commit is contained in:
parent
1064e8bc63
commit
50cc851f4f
@ -90,7 +90,7 @@ class UserProfileSerializer(serializers.Serializer):
|
|||||||
"""
|
"""
|
||||||
workspace_list = get_workspace_list_by_user(user.id)
|
workspace_list = get_workspace_list_by_user(user.id)
|
||||||
user_role_relation_model = DatabaseModelManage.get_model("workspace_user_role_mapping")
|
user_role_relation_model = DatabaseModelManage.get_model("workspace_user_role_mapping")
|
||||||
role_name = user.role
|
role_name = [user.role]
|
||||||
if user_role_relation_model:
|
if user_role_relation_model:
|
||||||
user_role_relations = (
|
user_role_relations = (
|
||||||
user_role_relation_model.objects
|
user_role_relation_model.objects
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user