"me" value is now available in queries for "assigned to" and "author" filters.

When executing the query, it is replaced by the currently logged in user.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@520 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-05-08 12:46:15 +00:00
parent 50429d0819
commit df0a49ff14
14 changed files with 33 additions and 4 deletions

View File

@@ -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')