summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-08-02 07:02:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-08-02 07:02:44 +0000
commit279e4b7aa024a308f30d60e303b16a44ebec29ed (patch)
treee09d042a7a466097b359e6e697dbf82c0aa9d9bf /app
parent14d3a11542b4db36fb4b389e773d20b16ff64a7f (diff)
downloadredmine-279e4b7aa024a308f30d60e303b16a44ebec29ed.tar.gz
redmine-279e4b7aa024a308f30d60e303b16a44ebec29ed.zip
Cannot create a custom query visibility is "to these roles only" (#20427).
git-svn-id: http://svn.redmine.org/redmine/trunk@14472 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/queries_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb
index e09790b94..72c09de64 100644
--- a/app/controllers/queries_controller.rb
+++ b/app/controllers/queries_controller.rb
@@ -108,6 +108,7 @@ private
@query.name = params[:query] && params[:query][:name]
if User.current.allowed_to?(:manage_public_queries, @query.project) || User.current.admin?
@query.visibility = (params[:query] && params[:query][:visibility]) || IssueQuery::VISIBILITY_PRIVATE
+ @query.role_ids = params[:query] && params[:query][:role_ids]
else
@query.visibility = IssueQuery::VISIBILITY_PRIVATE
end