summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-05 12:50:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-05 12:50:19 +0000
commit405fc07e90730c550f1e690a446eda872fd8732d (patch)
tree31e34beee0e4475e530fbeba6e6a5631f6fe3e4f /app/models/time_entry.rb
parentc2095f5e2f4e92dcfae3d7d5ccbe8900844c5361 (diff)
downloadredmine-405fc07e90730c550f1e690a446eda872fd8732d.tar.gz
redmine-405fc07e90730c550f1e690a446eda872fd8732d.zip
Makes visible scopes accept projects option and deprecate Project.visible_by.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5324 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry.rb')
-rw-r--r--app/models/time_entry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb
index c89ead322..a5139998a 100644
--- a/app/models/time_entry.rb
+++ b/app/models/time_entry.rb
@@ -41,7 +41,7 @@ class TimeEntry < ActiveRecord::Base
named_scope :visible, lambda {|*args| {
:include => :project,
- :conditions => Project.allowed_to_condition(args.first || User.current, :view_time_entries)
+ :conditions => Project.allowed_to_condition(args.shift || User.current, :view_time_entries, *args)
}}
def after_initialize