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.15.5 app/policies/invite_policy.rb
pages_core-3.15.4 app/policies/invite_policy.rb
pages_core-3.15.3 app/policies/invite_policy.rb
pages_core-3.15.2 app/policies/invite_policy.rb
pages_core-3.15.1 app/policies/invite_policy.rb
pages_core-3.14.0 app/policies/invite_policy.rb
pages_core-3.13.0 app/policies/invite_policy.rb
pages_core-3.12.7 app/policies/invite_policy.rb
pages_core-3.12.6 app/policies/invite_policy.rb
pages_core-3.12.5 app/policies/invite_policy.rb
pages_core-3.12.4 app/policies/invite_policy.rb
pages_core-3.12.3 app/policies/invite_policy.rb
pages_core-3.12.2 app/policies/invite_policy.rb
pages_core-3.12.1 app/policies/invite_policy.rb
pages_core-3.12.0 app/policies/invite_policy.rb
pages_core-3.11.3 app/policies/invite_policy.rb
pages_core-3.11.2 app/policies/invite_policy.rb
pages_core-3.11.1 app/policies/invite_policy.rb
pages_core-3.11.0 app/policies/invite_policy.rb
pages_core-3.10.2 app/policies/invite_policy.rb