Skip to content

Commit

Permalink
fix: dataset file upload not dataser editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouhaoJiang committed Dec 18, 2024
1 parent 155cf29 commit 2a046cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/console/datasets/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get(self):
@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
Expand Down

0 comments on commit 2a046cc

Please sign in to comment.