Sha256: 3084e832f1310641246964621e260437b81be43154e57b9b4741d8acca26946e

Contents?: true

Size: 472 Bytes

Versions: 21

Compression:

Stored size: 472 Bytes

Contents

module Hydra
  module AccessControls
    module WithAccessRight
      extend ActiveSupport::Concern

      def under_embargo?
        @under_embargo ||= rightsMetadata.under_embargo?
      end

      delegate :open_access?, :open_access_with_embargo_release_date?, 
               :authenticated_only_access?, :private_access?, to: :access_rights

      protected
        def access_rights
          @access_rights ||= AccessRight.new(self)
        end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hydra-access-controls-6.5.2 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.5.1 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.0.2 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.2 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.0.1 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.0.0 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.0.0.rc1 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.0.0.pre3 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.5.0 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.5.0.rc2 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.0.0.pre2 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.0.0.pre1 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.1 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.0 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.0.rc5 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.0.rc4 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.0.rc3 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.0.rc2 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.0.rc1 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-6.4.0.pre2 app/models/concerns/hydra/access_controls/with_access_right.rb