mirror of
https://github.com/funamitech/mastodon
synced 2025-01-21 01:05:04 +09:00
8 lines
183 B
Ruby
8 lines
183 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class PollPolicy < ApplicationPolicy
|
||
|
def vote?
|
||
|
!current_account.blocking?(record.account) && !record.account.blocking?(current_account)
|
||
|
end
|
||
|
end
|