Skip to content

Commit

Permalink
Merge pull request #361 from EverythingMe/DAT-825
Browse files Browse the repository at this point in the history
Fix: fail with 403 when user not allowed to archive query.
  • Loading branch information
arikfr committed Jan 25, 2015
2 parents 039b0a8 + febf993 commit d941e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def delete(self, query_id):
if q.user.id == self.current_user.id or self.current_user.has_permission('admin'):
q.archive()
else:
self.delete_others_query(query_id)
abort(403)
else:
abort(404, message="Query not found.")

Expand Down

0 comments on commit d941e5e

Please sign in to comment.