diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index edc8088f0..da9aef30b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -67,7 +67,7 @@ class UsersController < ApplicationController if User.current.admin? @memberships = @user.memberships.all else - cond = Project.visible_condition(User.current) + "AND projects.project_type <> 1" + cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" @memberships = @user.memberships.all(:conditions => cond) end events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 20)