##// END OF EJS Templates
Removed deprecated methods....
Jean-Philippe Lang -
r7857:b8836d89b105
parent child
Show More
@@ -123,11 +123,6 class Project < ActiveRecord::Base
123 123 user.allowed_to?(:view_project, self)
124 124 end
125 125
126 def self.visible_by(user=nil)
127 ActiveSupport::Deprecation.warn "Project.visible_by is deprecated and will be removed in Redmine 1.3.0. Use Project.visible_condition instead."
128 visible_condition(user || User.current)
129 end
130
131 126 # Returns a SQL conditions string used to find all projects visible by the specified user.
132 127 #
133 128 # Examples:
@@ -86,14 +86,6 class TimeEntry < ActiveRecord::Base
86 86 (usr == user && usr.allowed_to?(:edit_own_time_entries, project)) || usr.allowed_to?(:edit_time_entries, project)
87 87 end
88 88
89 # TODO: remove this method in 1.3.0
90 def self.visible_by(usr)
91 ActiveSupport::Deprecation.warn "TimeEntry.visible_by is deprecated and will be removed in Redmine 1.3.0. Use the visible scope instead."
92 with_scope(:find => { :conditions => Project.allowed_to_condition(usr, :view_time_entries) }) do
93 yield
94 end
95 end
96
97 89 def self.earilest_date_for_project(project=nil)
98 90 finder_conditions = ARCondition.new(Project.allowed_to_condition(User.current, :view_time_entries))
99 91 if project
General Comments 0
You need to be logged in to leave comments. Login now