@@ -69,7 +69,7 class UsersController < ApplicationController | |||||
69 |
|
69 | |||
70 | def show |
|
70 | def show | |
71 | # show projects based on current user visibility |
|
71 | # show projects based on current user visibility | |
72 |
@memberships = @user.memberships.all(:conditions => Project.visible_ |
|
72 | @memberships = @user.memberships.all(:conditions => Project.visible_condition(User.current)) | |
73 |
|
73 | |||
74 | events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 10) |
|
74 | events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 10) | |
75 | @events_by_day = events.group_by(&:event_date) |
|
75 | @events_by_day = events.group_by(&:event_date) |
@@ -57,7 +57,7 class ProjectsControllerTest < ActionController::TestCase | |||||
57 | assert_response :success |
|
57 | assert_response :success | |
58 | assert_template 'common/feed.atom.rxml' |
|
58 | assert_template 'common/feed.atom.rxml' | |
59 | assert_select 'feed>title', :text => 'Redmine: Latest projects' |
|
59 | assert_select 'feed>title', :text => 'Redmine: Latest projects' | |
60 |
assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_ |
|
60 | assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_condition(User.current)) | |
61 | end |
|
61 | end | |
62 |
|
62 | |||
63 | context "#index" do |
|
63 | context "#index" do |
General Comments 0
You need to be logged in to leave comments.
Login now