Module: Hyrax::Permissions::Readable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Hyrax::Permissions, SolrDocumentBehavior
- Defined in:
- app/models/concerns/hyrax/permissions/readable.rb
Instance Method Summary collapse
Instance Method Details
#private? ⇒ Boolean
14 15 16 |
# File 'app/models/concerns/hyrax/permissions/readable.rb', line 14 def private? !(public? || registered?) end |
#public? ⇒ Boolean
6 7 8 |
# File 'app/models/concerns/hyrax/permissions/readable.rb', line 6 def public? read_groups.include?(Hydra::AccessControls::AccessRight::PERMISSION_TEXT_VALUE_PUBLIC) end |
#registered? ⇒ Boolean
10 11 12 |
# File 'app/models/concerns/hyrax/permissions/readable.rb', line 10 def registered? read_groups.include?(Hydra::AccessControls::AccessRight::PERMISSION_TEXT_VALUE_AUTHENTICATED) end |