Sha256: 678df253ddd977e111706f522a0d91eb7ce01519e760aa26e619e47696c0f170

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

module Hydra
  module AccessControls
    module WithAccessRight
      extend ActiveSupport::Concern
      include Hydra::AccessControls::Permissions

      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

4 entries across 4 versions & 1 rubygems

Version Path
hydra-access-controls-7.2.0 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.1.0 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.1.0.rc2 app/models/concerns/hydra/access_controls/with_access_right.rb
hydra-access-controls-7.1.0.rc1 app/models/concerns/hydra/access_controls/with_access_right.rb