ソースを参照

Ensure only people allowed to see the poll can actually vote (#10161)

master
ThibG 5年前
committed by Eugen Rochko
コミット
7a25bb858a
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      app/policies/poll_policy.rb

+ 1
- 1
app/policies/poll_policy.rb ファイルの表示

@@ -2,6 +2,6 @@

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

読み込み中…
キャンセル
保存