Sha256: 6bd15807e5637dfcf0e34a061cd0d29c3ad6134cbade0b222d791cea0917b75f

Contents?: true

Size: 315 Bytes

Versions: 39

Compression:

Stored size: 315 Bytes

Contents

class LanguagePolicy < ApplicationPolicy
  def index?
    true
  end

  def show?
    true
  end

  def create?
    true if user.try(:has_role?, 'Administrator')
  end

  def update?
    true if user.try(:has_role?, 'Administrator')
  end

  def destroy?
    true if user.try(:has_role?, 'Administrator')
  end
end

Version data entries

39 entries across 38 versions & 2 rubygems

Version Path
enju_biblio-0.3.18 app/policies/language_policy.rb
enju_biblio-0.3.17 app/policies/language_policy.rb
enju_biblio-0.3.16 app/policies/language_policy.rb
enju_biblio-0.3.15 app/policies/language_policy.rb
enju_biblio-0.3.14 app/policies/language_policy.rb
enju_biblio-0.3.13 app/policies/language_policy.rb
enju_biblio-0.3.12 app/policies/language_policy.rb
enju_biblio-0.3.11 app/policies/language_policy.rb
enju_biblio-0.3.10 app/policies/language_policy.rb
enju_biblio-0.3.10.rc.3 app/policies/language_policy.rb
enju_biblio-0.3.10.rc.2 app/policies/language_policy.rb
enju_biblio-0.3.10.rc.1 app/policies/language_policy.rb
enju_biblio-0.3.9 app/policies/language_policy.rb
enju_biblio-0.4.0.rc.1 app/policies/language_policy.rb
enju_biblio-0.3.8 app/policies/language_policy.rb
enju_biblio-0.3.7 app/policies/language_policy.rb
enju_biblio-0.3.6 app/policies/language_policy.rb
enju_biblio-0.4.0.beta.2 app/policies/language_policy.rb
enju_biblio-0.4.0.beta.1 app/policies/language_policy.rb
enju_biblio-0.3.5 app/policies/language_policy.rb