このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
abunchtell
/
mastodon
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
アクティビティ
ソースを参照
Ensure only people allowed to see the poll can actually vote (
#10161
)
master
ThibG
5年前
committed by
Eugen Rochko
親
f2a1b8b96b
コミット
7a25bb858a
1個のファイルの変更
、
1行の追加
、
1行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+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
書き込み
プレビュー
読み込み中…
キャンセル
保存