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