5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 08:06:22 +00:00

fix: doble negación

This commit is contained in:
f 2024-04-19 13:07:49 -03:00
parent fe51ef2193
commit 452ca43508
No known key found for this signature in database

View file

@ -2,7 +2,7 @@
.d-flex.flex-row.w-100
- local = { report: { class: 'ml-auto', data: { confirm: t('.confirm_report') } } }
- ActorModeration.events.each do |actor_event|
- possible = !actor_moderation.public_send(:"may_#{actor_event}?")
- possible = actor_moderation.public_send(:"may_#{actor_event}?")
%div{ class: local.dig(actor_event, :class) }
= render 'components/btn_base',
text: t(".text_#{actor_event}"),