Fixed: assigned_to and author filters in cross project issues view should be based on user's project visibility. #5760
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3916 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -351,4 +351,13 @@ class QueryTest < ActiveSupport::TestCase
|
||||
assert !q.editable_by?(manager)
|
||||
assert !q.editable_by?(developer)
|
||||
end
|
||||
|
||||
context "#available_filters" do
|
||||
should "include users of visible projects in cross-project view" do
|
||||
query = Query.new(:name => "_")
|
||||
users = query.available_filters["assigned_to_id"]
|
||||
assert_not_nil users
|
||||
assert users[:values].map{|u|u[1]}.include?("3")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user