2019-07-08 20:58:14 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Política de aceptación de colaboradorxs
|
|
|
|
CollaborationPolicy = Struct.new(:usuarie, :collaboration) do
|
|
|
|
def collaborate?
|
2019-08-06 23:17:29 +00:00
|
|
|
collaboration.site.invitades?
|
2019-07-08 20:58:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def accept_collaboration?
|
2019-08-06 23:17:29 +00:00
|
|
|
collaboration.site.invitades?
|
2019-07-08 20:58:14 +00:00
|
|
|
end
|
|
|
|
end
|