Parcourir la source

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

master
ThibG il y a 5 ans
committed by Eugen Rochko
Parent
révision
7a25bb858a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      app/policies/poll_policy.rb

+ 1
- 1
app/policies/poll_policy.rb Voir le fichier

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

Chargement…
Annuler
Enregistrer