git-svn-id: http://svn.redmine.org/redmine/trunk@20330 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.2.0
@@ -31,10 +31,10 @@ class Board < ActiveRecord::Base | |||
validates_length_of :description, :maximum => 255 | |||
validate :validate_board | |||
scope :visible, lambda {|*args| | |||
scope :visible, (lambda do |*args| | |||
joins(:project). | |||
where(Project.allowed_to_condition(args.shift || User.current, :view_messages, *args)) | |||
} | |||
end) | |||
safe_attributes 'name', 'description', 'parent_id', 'position' | |||