git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21216
e93f8b46-1217-0410-a6f0-
8f06a7374b81
@date_from = @date_to - @days
@with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
if params[:user_id].present?
- @author = User.active.find(params[:user_id])
+ @author = User.visible.active.find(params[:user_id])
end
@activity = Redmine::Activity::Fetcher.new(User.current, :project => @project,
assert_response 404
end
+ def test_user_index_with_non_visible_user_id_should_respond_404
+ Role.anonymous.update! :users_visibility => 'members_of_visible_projects'
+ user = User.generate!
+
+ @request.session[:user_id] = nil
+ get :index, :params => {
+ :user_id => user.id
+ }
+
+ assert_response 404
+ end
+
def test_index_atom_feed
get :index, :params => {
:format => 'atom',