app/models/hyrax/permission_template.rb
# Determines whether a given visibility setting is valid based on this template's requirements
# @param [String] value - visibility value to validate
Determines whether a given visibility setting is valid based on this template's requirements
Determines whether a given visibility setting is valid based on this template ' s requirements
def valid_visibility?(value)
      return true if visibility.blank?
      visibility == value
    end
def valid_visibility? ( value ) return true if visibility . blank? visibility == value end
Determines whether a given visibility setting is valid based on this template's requirements
Determines whether a given visibility setting is valid based on this template ' s requirements
# If template doesn't specify a visiblity (i.e. is "varies"), then any visibility is valid # Validate that passed in value matches visibility requirement exactly
value
<not_specific>
<not_specific>
visibility value to validate
visibility value to validate