Skip to content

Commit

Permalink
Fixed a bug where permission was clearly displaye… (langgenius#6934)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenZixinn authored Aug 5, 2024
1 parent ef616c6 commit f0d1055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/controllers/console/datasets/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ def patch(self, dataset_id):
DatasetPermissionService.update_partial_member_list(
tenant_id, dataset_id_str, data.get('partial_member_list')
)
else:
# clear partial member list when permission is only_me or all_team_members
elif data.get('permission') == 'only_me' or data.get('permission') == 'all_team_members':
DatasetPermissionService.clear_partial_member_list(dataset_id_str)

partial_member_list = DatasetPermissionService.get_dataset_partial_member_list(dataset_id_str)
Expand Down

0 comments on commit f0d1055

Please sign in to comment.