We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca6127 commit fa818fcCopy full SHA for fa818fc
apps/users/serializers/user.py
@@ -439,8 +439,7 @@ def get_user_members(self, workspace_id):
439
if user_role_relation_model and role_model:
440
user_role_relations = (
441
user_role_relation_model.objects
442
- .filter(workspace_id=workspace_id)
443
- .exclude(role__id='workspace_admin', role__type='USER')
+ .filter(workspace_id=workspace_id, role__type='USER')
444
.select_related('role', 'user') # 预加载外键数据
445
)
446
user_dict = {}
0 commit comments