Skip to content

Commit d941e5e

Browse files
committed
Merge pull request #361 from EverythingMe/DAT-825
Fix: fail with 403 when user not allowed to archive query.
2 parents 039b0a8 + febf993 commit d941e5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redash/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def delete(self, query_id):
349349
if q.user.id == self.current_user.id or self.current_user.has_permission('admin'):
350350
q.archive()
351351
else:
352-
self.delete_others_query(query_id)
352+
abort(403)
353353
else:
354354
abort(404, message="Query not found.")
355355

0 commit comments

Comments
 (0)