Skip to content

Commit

Permalink
refactor: change access denied message for publishing dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
slugb0t committed Nov 14, 2023
1 parent 78d043c commit 1f41d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def put(
): # pylint: disable= unused-argument
study = model.Study.query.get(study_id)
if not is_granted("publish_dataset", study):
return "Access denied, you can not modify dataset", 403
return "Access denied, you can not publish dataset", 403
data_version_obj = model.Version.query.get(version_id)
data_version_obj.update(request.json)
model.db.session.commit()
Expand Down

0 comments on commit 1f41d74

Please sign in to comment.