mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 17:09:23 +08:00
fix: dataset file upload not dataser editor
This commit is contained in:
@@ -42,7 +42,7 @@ class FileApi(Resource):
|
||||
@marshal_with(file_fields)
|
||||
@cloud_edition_billing_resource_check("documents")
|
||||
def post(self):
|
||||
if current_user.is_dataset_editor:
|
||||
if not current_user.is_dataset_editor:
|
||||
raise Forbidden()
|
||||
|
||||
# get file from request
|
||||
|
||||
Reference in New Issue
Block a user