Fixed a bug where permission was clearly displaye… (#6934)

This commit is contained in:
TzuxinChen 2024-08-05 13:19:01 +08:00 committed by GitHub
parent ef616c604a
commit f0d10553b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -238,7 +238,8 @@ class DatasetApi(Resource):
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)