Browse Source

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

pull/4/head
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
7a25bb858a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/policies/poll_policy.rb

+ 1
- 1
app/policies/poll_policy.rb View File

@ -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

Loading…
Cancel
Save