1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

removed ourdated comment

This commit is contained in:
Sylvain 2021-10-21 15:11:47 +02:00
parent 9c55b9d61f
commit a51dec9c72

View File

@ -129,7 +129,6 @@ class Invoice < PaymentDocument
def prevent_refund?
return true if user.nil?
# workaround for reservation saved after invoice
if main_item.object_type == 'Reservation' && main_item.object&.reservable_type == 'Training'
user.trainings.include?(main_item.object.reservable_id)
else