From bbd0b4e04a1356ceba1960ad5298e95e3f13f060 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 25 Jun 2020 17:17:38 -0300 Subject: [PATCH] solo mostrar el boton de colaboracion anonima cuando esta habilitado --- app/policies/collaboration_policy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/policies/collaboration_policy.rb b/app/policies/collaboration_policy.rb index a386f535..4f1147d9 100644 --- a/app/policies/collaboration_policy.rb +++ b/app/policies/collaboration_policy.rb @@ -3,10 +3,10 @@ # Política de aceptación de colaboradorxs CollaborationPolicy = Struct.new(:usuarie, :collaboration) do def collaborate? - collaboration.site.invitades? + collaboration.site.colaboracion_anonima end def accept_collaboration? - collaboration.site.invitades? + collaboration.site.colaboracion_anonima end end