Skip to content

Commit

Permalink
Fix: fail with 403 when user not allowed to archive query.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jan 25, 2015
1 parent cddc00e commit febf993
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 febf993

Please sign in to comment.