diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-10 12:31:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-10 12:31:49 +0000 |
commit | be4cc2f99e34316be4b8beb2e9040c5ea967a736 (patch) | |
tree | 604c1ea827a9b4547fda36501b9044cd71e6a0e4 /vendor/plugins | |
parent | de3d5a88e4c70a06501cc51d7c2a1fcace4092a7 (diff) | |
download | redmine-be4cc2f99e34316be4b8beb2e9040c5ea967a736.tar.gz redmine-be4cc2f99e34316be4b8beb2e9040c5ea967a736.zip |
Fixed: search engine may reveal private projects (#1613).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1649 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/plugins')
-rw-r--r-- | vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb b/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb index 1eb64c30f..2c773d70a 100644 --- a/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb +++ b/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb @@ -67,7 +67,7 @@ module Redmine module ClassMethods # Search the model for the given tokens # projects argument can be either nil (will search all projects), a project or an array of projects - def search(tokens, projects, options={}) + def search(tokens, projects=nil, options={}) tokens = [] << tokens unless tokens.is_a?(Array) projects = [] << projects unless projects.nil? || projects.is_a?(Array) |