Sha256: 883644a9b8263702486123eeb9f6b65649a77ec0be1710d309ede112dee0c312

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

class InvitePolicy < Policy
  def index?
    true
  end

  def reorder?
    user.role?(:users)
  end

  def new?
    user.role?(:users)
  end

  def show?
    true
  end

  def edit?
    user.role?(:users)
  end

  def accept?
    true
  end

  def policies?
    user.role?(:users)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pages_core-3.6.2 app/policies/invite_policy.rb
pages_core-3.6.1 app/policies/invite_policy.rb
pages_core-3.6.0 app/policies/invite_policy.rb
pages_core-3.4.3 app/policies/invite_policy.rb
pages_core-3.5.1 app/policies/invite_policy.rb
pages_core-3.4.2 app/policies/invite_policy.rb