confirm check

This commit is contained in:
Cayo Puigdefabregas 2021-06-07 15:45:32 +02:00
parent 8289f24b69
commit f9189ea413
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ class TradeView():
if self.trade.user_from and self.trade.user_to:
return
if self.trade.confirm:
return
if self.trade.user_from and not self.trade.user_to:
assert g.user == self.trade.user_from
email = "{}_{}@dhub.com".format(str(self.trade.user_from.id), self.trade.code)