Sha256: 641f4e8574b083ad4c008aa80a3eefb877c0533ebf9d374c29c50cf98cdda631
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
module CurationConcern module WithAccessRight extend ActiveSupport::Concern included do attr_accessor :visibility end def under_embargo? @under_embargo ||= rightsMetadata.under_embargo? end def open_access? access_rights.open_access? end def open_access_with_embargo_release_date? access_rights.open_access_with_embargo_release_date? end def authenticated_only_access? access_rights.authenticated_only? end def private_access? access_rights.private? end def access_rights @access_rights ||= AccessRight.new(self) end protected :access_rights end end
Version data entries
3 entries across 3 versions & 1 rubygems