diff options
Diffstat (limited to 'app/models')
-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 b80f0f2d1..76853e4b0 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -226,6 +226,11 @@ class Version < ActiveRecord::Base end end + # Returns true if the version is shared, otherwise false + def shared? + sharing != 'none' + end + private def load_issue_counts |