solo mostrar el boton de colaboracion anonima cuando esta habilitado
This commit is contained in:
parent
0742a2eff1
commit
bbd0b4e04a
1 changed files with 2 additions and 2 deletions
|
@ -3,10 +3,10 @@
|
||||||
# Política de aceptación de colaboradorxs
|
# Política de aceptación de colaboradorxs
|
||||||
CollaborationPolicy = Struct.new(:usuarie, :collaboration) do
|
CollaborationPolicy = Struct.new(:usuarie, :collaboration) do
|
||||||
def collaborate?
|
def collaborate?
|
||||||
collaboration.site.invitades?
|
collaboration.site.colaboracion_anonima
|
||||||
end
|
end
|
||||||
|
|
||||||
def accept_collaboration?
|
def accept_collaboration?
|
||||||
collaboration.site.invitades?
|
collaboration.site.colaboracion_anonima
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue