Sha256: 26d2b919fcea8c38d55a1dda8fb08f665362f5911b184a56e2a38a091b697ca6

Contents?: true

Size: 365 Bytes

Versions: 29

Compression:

Stored size: 365 Bytes

Contents

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

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

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

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

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
enju_circulation-0.2.4 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.3 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.2 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.1 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.0 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.0.beta.4 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.0.beta.3 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.0.beta.2 app/policies/user_group_has_checkout_type_policy.rb
enju_circulation-0.2.0.beta.1 app/policies/user_group_has_checkout_type_policy.rb