diff options
Diffstat (limited to 'app/models/version_custom_field.rb')
-rw-r--r-- | app/models/version_custom_field.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/version_custom_field.rb b/app/models/version_custom_field.rb index 238649c7c..d9034e06f 100644 --- a/app/models/version_custom_field.rb +++ b/app/models/version_custom_field.rb @@ -21,4 +21,8 @@ class VersionCustomField < CustomField def type_name :label_version_plural end + + def visible_by?(project, user=User.current) + super || (roles & user.roles_for_project(project)).present? + end end |