diff options
Diffstat (limited to 'app/controllers/queries_controller.rb')
-rw-r--r-- | app/controllers/queries_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb index 7f7f01fd3..abafd19d4 100644 --- a/app/controllers/queries_controller.rb +++ b/app/controllers/queries_controller.rb @@ -42,6 +42,7 @@ class QueriesController < ApplicationController private def find_query @query = Query.find(params[:id]) + @query.executed_by = logged_in_user @project = @query.project # check if user is allowed to manage queries (same permission as add_query) authorize('projects', 'add_query') |