app/helpers/works_helper.rb
def can_see_work(work, user)
    unless work.collections.empty?
      for collection in work.collections
        return true if collection.user_is_maintainer?(user)
      end
    end
    false
  end
# List of date, chapter and length info for the work show page
List of date, chapter and length info for the work show page
List of date chapter and length info for the work show page
def can_see_work(work, user)
    unless work.collections.empty?
      for collection in work.collections
        return true if collection.user_is_maintainer?(user)
      end
    end
    false
  end
def can_see_work ( work , user ) unless work . collections . empty? for collection in work . collections return true if collection . user_is_maintainer? ( user ) end end false end
List of date, chapter and length info for the work show page
List of date chapter and length info for the work show page
work
user