5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 18:06:22 +00:00
panel/app/policies/collaboration_policy.rb

13 lines
269 B
Ruby
Raw Permalink Normal View History

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?
collaboration.site.invitadxs?
end
def accept_collaboration?
collaboration.site.invitadxs?
end
end