diff --git a/app/models/project.rb b/app/models/project.rb index dcfe8fdbb..e636c33de 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -123,11 +123,6 @@ class Project < ActiveRecord::Base user.allowed_to?(:view_project, self) end - def self.visible_by(user=nil) - ActiveSupport::Deprecation.warn "Project.visible_by is deprecated and will be removed in Redmine 1.3.0. Use Project.visible_condition instead." - visible_condition(user || User.current) - end - # Returns a SQL conditions string used to find all projects visible by the specified user. # # Examples: diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index f452c4843..1afe54829 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -86,14 +86,6 @@ class TimeEntry < ActiveRecord::Base (usr == user && usr.allowed_to?(:edit_own_time_entries, project)) || usr.allowed_to?(:edit_time_entries, project) end - # TODO: remove this method in 1.3.0 - def self.visible_by(usr) - ActiveSupport::Deprecation.warn "TimeEntry.visible_by is deprecated and will be removed in Redmine 1.3.0. Use the visible scope instead." - with_scope(:find => { :conditions => Project.allowed_to_condition(usr, :view_time_entries) }) do - yield - end - end - def self.earilest_date_for_project(project=nil) finder_conditions = ARCondition.new(Project.allowed_to_condition(User.current, :view_time_entries)) if project