summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-05 13:29:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-05 13:29:07 +0000
commit1d7c0eb7c02d22f65ed1e4443abcf92b5bd7a899 (patch)
treed1875f0d37caf40095060e2b231e5d815b1b7f19 /app
parentbd927eea88a6b473ab6d9edb9aaa53b848775c79 (diff)
downloadredmine-1d7c0eb7c02d22f65ed1e4443abcf92b5bd7a899.tar.gz
redmine-1d7c0eb7c02d22f65ed1e4443abcf92b5bd7a899.zip
Makes Private column available on the issue list (#8577).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9919 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/query.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 3f4173a1b..42309e01a 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -388,6 +388,11 @@ class Query < ActiveRecord::Base
)
end
+ if User.current.allowed_to?(:set_issues_private, nil, :global => true) ||
+ User.current.allowed_to?(:set_own_issues_private, nil, :global => true)
+ @available_columns << QueryColumn.new(:is_private, :sortable => "#{Issue.table_name}.is_private")
+ end
+
disabled_fields = Tracker.disabled_core_fields(trackers).map {|field| field.sub(/_id$/, '')}
@available_columns.reject! {|column|
disabled_fields.include?(column.name.to_s)