about summary refs log tree commit diff
path: root/app/policies/poll_policy.rb
blob: 0d839f24089a373277fd2c6b5c0b4772e44caa84 (plain) (blame)
1
2
3
4
5
6
7
# frozen_string_literal: true

class PollPolicy < ApplicationPolicy
  def vote?
    !current_account.blocking?(record.account) && !record.account.blocking?(current_account)
  end
end