本網站在啟用 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 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
取消
儲存