Removed calls to deprecated Project.visible_by method.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5328 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2b8d32a30e
commit
5f7f69e214
|
@ -69,7 +69,7 @@ class UsersController < ApplicationController
|
|||
|
||||
def show
|
||||
# show projects based on current user visibility
|
||||
@memberships = @user.memberships.all(:conditions => Project.visible_by(User.current))
|
||||
@memberships = @user.memberships.all(:conditions => Project.visible_condition(User.current))
|
||||
|
||||
events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 10)
|
||||
@events_by_day = events.group_by(&:event_date)
|
||||
|
|
|
@ -57,7 +57,7 @@ class ProjectsControllerTest < ActionController::TestCase
|
|||
assert_response :success
|
||||
assert_template 'common/feed.atom.rxml'
|
||||
assert_select 'feed>title', :text => 'Redmine: Latest projects'
|
||||
assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_by(User.current))
|
||||
assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_condition(User.current))
|
||||
end
|
||||
|
||||
context "#index" do
|
||||
|
|
Loading…
Reference in New Issue