代码修改
This commit is contained in:
parent
ad5ac329f2
commit
ee3a5f5719
|
@ -67,7 +67,7 @@ class UsersController < ApplicationController
|
||||||
if User.current.admin?
|
if User.current.admin?
|
||||||
@memberships = @user.memberships.all
|
@memberships = @user.memberships.all
|
||||||
else
|
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)
|
@memberships = @user.memberships.all(:conditions => cond)
|
||||||
end
|
end
|
||||||
events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 20)
|
events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 20)
|
||||||
|
|
Loading…
Reference in New Issue