Fixes 3 Economy Bugs (#20094)

* fixes galore

* ai fix
This commit is contained in:
Ryan
2023-01-06 22:11:58 +01:00
committed by GitHub
parent 33d937feb8
commit d053233366
3 changed files with 22 additions and 9 deletions
+2 -2
View File
@@ -397,9 +397,9 @@
SSeconomy.request_list -= order
return
// If we arent public, were cargo access. CANCELLATIONS FOR EVERYONE
if(order.requires_cargo_approval && (ACCESS_CARGO in C.access))
if(order.requires_cargo_approval && (issilicon(user) || (ACCESS_CARGO in C?.access)))
SSeconomy.request_list -= order
else if(order.requires_head_approval && (order.ordered_by_department.has_account_access(C.access)))
else if(order.requires_head_approval && (issilicon(user) || order.ordered_by_department.has_account_access(C?.access)))
SSeconomy.request_list -= order
else
return //how did we get here?