Removed deprecated methods.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7977 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d66c8faa9b
commit
b8836d89b1
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue