Sha256: eda348b43b18e6f93652f91e14d9a688710d2eae5417ecbd75fdd1c71ea3b384

Contents?: true

Size: 289 Bytes

Versions: 9

Compression:

Stored size: 289 Bytes

Contents

class Guide::DefaultAuthorisationSystem
  def allow?(action)
    true
  end

  def user_is_privileged?
    allow?(:view_guide_unpublished) ||
      allow?(:view_guide_restricted)
  end

  def valid_visibility_options
    [
      nil,
      :unpublished,
      :restricted,
    ]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
guide-0.8.0 app/models/guide/default_authorisation_system.rb
guide-0.7.0 app/models/guide/default_authorisation_system.rb
guide-0.6.1 app/models/guide/default_authorisation_system.rb
guide-0.6.0 app/models/guide/default_authorisation_system.rb
guide-0.5.0 app/models/guide/default_authorisation_system.rb
guide-0.4.1 app/models/guide/default_authorisation_system.rb
guide-0.4.0 app/models/guide/default_authorisation_system.rb
guide-0.3.2 app/models/guide/default_authorisation_system.rb
guide-0.3.1 app/models/guide/default_authorisation_system.rb