allow to invite party

This commit is contained in:
Pete Matsyburka
2024-09-12 17:31:37 +03:00
committed by Oleksandr Turchyn
parent 3604fb6461
commit 10fbdf6612
27 changed files with 322 additions and 43 deletions
+7
View File
@@ -23,4 +23,11 @@ module Templates
templates.where(Template.arel_table[:name].lower.matches("%#{keyword.downcase}%"))
end
def filter_undefined_submitters(template)
template.submitters.to_a.select do |item|
item['invite_by_uuid'].blank? && item['linked_to_uuid'].blank? &&
item['is_requester'].blank? && item['email'].blank?
end
end
end