diff options
Diffstat (limited to 'app/models/version.rb')
-rw-r--r-- | app/models/version.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index b5f34e97f..3340be77e 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -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 |