Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
abunchtell
/
mastodon
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Actividad
Explorar el Código
Ensure only people allowed to see the poll can actually vote (
#10161
)
master
ThibG
hace 5 años
committed by
Eugen Rochko
padre
f2a1b8b96b
commit
7a25bb858a
Se han
modificado 1 ficheros
con
1 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
app/policies/poll_policy.rb
+ 1
- 1
app/policies/poll_policy.rb
Ver fichero
@@ -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
Escribir
Vista previa
Cargando…
Cancelar
Guardar