代码修改

This commit is contained in:
z9hang 2014-05-23 17:40:59 +08:00
parent ad5ac329f2
commit ee3a5f5719
1 changed files with 1 additions and 1 deletions

View File

@ -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)