mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 23:41:43 +00:00
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