修复项目首页的用户动态会显示私有项目中的动态的BUG
This commit is contained in:
parent
2e3ff531f6
commit
0f492047a5
|
@ -405,7 +405,8 @@ module WelcomeHelper
|
||||||
"show_bids" => true,
|
"show_bids" => true,
|
||||||
"show_contest" => true
|
"show_contest" => true
|
||||||
}
|
}
|
||||||
activity.scope_select{|t| ['changesets', 'documents', 'memos', 'messages', 'journals_for_messages', 'bids', 'news', 'contestnotification'].include?(t) ? nil : 'You may think you know what the following code does, may be. but why don"t you close this file and go play with something else, Now?' }
|
activity.scope_select{|t| ['changesets', 'documents', 'memos', 'messages', 'journals_for_messages', 'bids', 'news', 'contestnotification'].include?(t) ?
|
||||||
|
nil : 'You may think you know what the following code does, may be. but why don"t you close this file and go play with something else, Now?' }
|
||||||
activity.events_welcome(nil, nil, {:limit => limit, :types => 'welcome'})
|
activity.events_welcome(nil, nil, {:limit => limit, :types => 'welcome'})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -109,12 +109,17 @@ module Redmine
|
||||||
end
|
end
|
||||||
if cur_objs
|
if cur_objs
|
||||||
cur_objs.each do |cur_obj|
|
cur_objs.each do |cur_obj|
|
||||||
if cur_obj.class == Issue
|
#if cur_obj.class.to_s == 'Issue'
|
||||||
if cur_obj.project != nil && cur_obj.project.project_status != nil
|
# if cur_obj.project != nil && cur_obj.project.project_status != nil && cur_obj.project.is_public == 1
|
||||||
e += [cur_obj]
|
# e += [cur_obj]
|
||||||
end
|
# end
|
||||||
else
|
#else
|
||||||
|
# e += [cur_obj]
|
||||||
|
#end
|
||||||
|
if cur_obj.project != nil && cur_obj.project.project_status != nil && cur_obj.project.is_public == true
|
||||||
e += [cur_obj]
|
e += [cur_obj]
|
||||||
|
#else
|
||||||
|
# e += [cur_obj]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue