Sha256: 713804f3c084f16f664fd3d0336cb9893a0b997712541a04265972c48f1d1543

Contents?: true

Size: 444 Bytes

Versions: 39

Compression:

Stored size: 444 Bytes

Contents

class AgentMergePolicy < ApplicationPolicy
  def index?
    true if user.try(:has_role?, 'Librarian')
  end

  def show?
    true if user.try(:has_role?, 'Librarian')
  end

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

  def edit?
    true if user.try(:has_role?, 'Librarian')
  end

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

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

Version data entries

39 entries across 38 versions & 2 rubygems

Version Path
enju_biblio-0.3.4 app/policies/agent_merge_policy.rb
enju_biblio-0.3.3 app/policies/agent_merge_policy.rb
enju_biblio-0.3.2 app/policies/agent_merge_policy.rb
enju_biblio-0.3.1 app/policies/agent_merge_policy.rb
enju_biblio-0.3.0 app/policies/agent_merge_policy.rb
enju_biblio-0.3.0.rc.1 app/policies/agent_merge_policy.rb
enju_biblio-0.3.0.beta.2 app/policies/agent_merge_policy.rb
enju_biblio-0.2.5 app/policies/agent_merge_policy.rb
enju_biblio-0.2.4 app/policies/agent_merge_policy.rb
enju_biblio-0.2.3 app/policies/agent_merge_policy.rb
enju_biblio-0.2.2 app/policies/agent_merge_policy.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/app/policies/agent_merge_policy.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/app/policies/agent_merge_policy.rb
enju_biblio-0.2.1 app/policies/agent_merge_policy.rb
enju_biblio-0.2.0 app/policies/agent_merge_policy.rb
enju_biblio-0.2.0.beta.4 app/policies/agent_merge_policy.rb
enju_biblio-0.2.0.beta.3 app/policies/agent_merge_policy.rb
enju_biblio-0.2.0.beta.2 app/policies/agent_merge_policy.rb
enju_biblio-0.2.0.beta.1 app/policies/agent_merge_policy.rb