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

class PollPolicy < ApplicationPolicy
  def vote?
    StatusPolicy.new(current_account, record.status).show? && !current_account.blocking?(record.account) && !record.account.blocking?(current_account)
  end
end