mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-10 19:23:06 +00:00
Merge branch 'master' of git://github.com/edavis10/redmine
Conflicts: db/migrate/20100705164950_change_changes_path_length_limit.rb
This commit is contained in:
commit
75d5ab431f
@ -5,7 +5,7 @@ class ChangeChangesPathLengthLimit < ActiveRecord::Migration
|
||||
end
|
||||
|
||||
def self.down
|
||||
change_column :changes, :from_path, :string, :default => "", :null => false
|
||||
change_column :changes, :path, :string, :default => "", :null => false
|
||||
change_column :changes, :from_path, :string
|
||||
end
|
||||
end
|
||||
|
||||
@ -38,7 +38,7 @@ module Redmine
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user