diff --git a/templates/wallet/transaction_detail.html b/templates/wallet/transaction_detail.html index 60381c2..9411c2c 100644 --- a/templates/wallet/transaction_detail.html +++ b/templates/wallet/transaction_detail.html @@ -12,11 +12,11 @@ {{ object.state }} {{ StateChoices.CREATED }} {% csrf_token %} - {% if object.state == StateChoices.CREATED %} + {% if object.state == StateChoices.CREATED and object.payer == request.user %}
- {% elif object.state == StateChoices.DELAYED %} + {% elif object.state == StateChoices.DELAYED and object.payer == request.user%}
diff --git a/wallet/settings.py b/wallet/settings.py index b23517c..18d59ef 100644 --- a/wallet/settings.py +++ b/wallet/settings.py @@ -50,6 +50,7 @@ INSTALLED_APPS = [ 'jalali_date', # local apps + 'apps.core', 'apps.users', 'apps.wallet', 'apps.gooyal_oauth2',