13 lines
269 B
Ruby
13 lines
269 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Política de aceptación de colaboradorxs
|
||
|
CollaborationPolicy = Struct.new(:usuarie, :collaboration) do
|
||
|
def collaborate?
|
||
|
collaboration.site.invitadxs?
|
||
|
end
|
||
|
|
||
|
def accept_collaboration?
|
||
|
collaboration.site.invitadxs?
|
||
|
end
|
||
|
end
|