Merged r7983 and r7984 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@8000 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-11-29 21:17:41 +00:00
parent 63e2e52dd3
commit fa894328bb
3 changed files with 21 additions and 3 deletions
+5
View File
@@ -43,6 +43,11 @@ class Version < ActiveRecord::Base
user.allowed_to?(:view_issues, self.project)
end
# Version files have same visibility as project files
def attachments_visible?(*args)
project.present? && project.attachments_visible?(*args)
end
def start_date
@start_date ||= fixed_issues.minimum('start_date')
end