1
0

poll_policy.rb 241 B

1234567
  1. # frozen_string_literal: true
  2. class PollPolicy < ApplicationPolicy
  3. def vote?
  4. StatusPolicy.new(current_account, record.status).show? && !current_account.blocking?(record.account) && !record.account.blocking?(current_account)
  5. end
  6. end