Project

General

Profile

Defect #5589 » include_subproject_event_types_in_activity_fetcher.patch

Adds the event types available in the project's subprojects - Felix Schäfer, 2010-07-01 16:19

View differences:

lib/redmine/activity/fetcher.rb
return @event_types unless @event_types.nil?
@event_types = Redmine::Activity.available_event_types
@event_types = @event_types.select {|o| @user.allowed_to?("view_#{o}".to_sym, @project)} if @project
@event_types = @event_types.select {|o| @project.self_and_descendants.detect {|p| @user.allowed_to?("view_#{o}".to_sym, p)}} if @project
@event_types
end
    (1-1/1)