Sync same logic for datasets. (#27056)
This commit is contained in:
@@ -150,7 +150,6 @@ class ExternalApiTemplateApi(Resource):
|
||||
current_user, current_tenant_id = current_account_with_tenant()
|
||||
external_knowledge_api_id = str(external_knowledge_api_id)
|
||||
|
||||
# The role of the current user in the ta table must be admin, owner, or editor
|
||||
if not (current_user.has_edit_permission or current_user.is_dataset_operator):
|
||||
raise Forbidden()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user