Sha256: b6d29264f6af4cc1333177d769f5cc1b52a82ed3f2335f9c7e9acae08424f146

Contents?: true

Size: 323 Bytes

Versions: 29

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true

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

29 entries across 29 versions & 1 rubygems

Version Path
pages_core-3.10.1 app/policies/invite_policy.rb
pages_core-3.9.2 app/policies/invite_policy.rb
pages_core-3.9.1 app/policies/invite_policy.rb
pages_core-3.9.0 app/policies/invite_policy.rb
pages_core-3.8.3 app/policies/invite_policy.rb
pages_core-3.8.2 app/policies/invite_policy.rb
pages_core-3.8.1 app/policies/invite_policy.rb
pages_core-3.8.0 app/policies/invite_policy.rb
pages_core-3.7.0 app/policies/invite_policy.rb