Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
abunchtell
/
mastodon
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Activité
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
f2a1b8b96b
révision
7a25bb858a
1 fichiers modifiés
avec
1 ajouts
et
1 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+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
Écrire
Aperçu
Chargement…
Annuler
Enregistrer