mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
removed ourdated comment
This commit is contained in:
parent
9c55b9d61f
commit
a51dec9c72
@ -129,7 +129,6 @@ class Invoice < PaymentDocument
|
|||||||
def prevent_refund?
|
def prevent_refund?
|
||||||
return true if user.nil?
|
return true if user.nil?
|
||||||
|
|
||||||
# workaround for reservation saved after invoice
|
|
||||||
if main_item.object_type == 'Reservation' && main_item.object&.reservable_type == 'Training'
|
if main_item.object_type == 'Reservation' && main_item.object&.reservable_type == 'Training'
|
||||||
user.trainings.include?(main_item.object.reservable_id)
|
user.trainings.include?(main_item.object.reservable_id)
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user