diff --git a/redash/controllers.py b/redash/controllers.py index 8d6d088e02..629991f786 100644 --- a/redash/controllers.py +++ b/redash/controllers.py @@ -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.")