diff --git a/restopay/urls.py b/restopay/urls.py index 9edc09b27713f8f4e1925af97cee5eae078aa7bf..48edd51d4efc3c412147e73e1e0e5ce41a08ee83 100755 --- a/restopay/urls.py +++ b/restopay/urls.py @@ -10,7 +10,7 @@ urlpatterns = [ path('customer', read_restopay_customer, name='read_restopay_customer'), path('topup_customer', topup_customer, name='topup_customer'), path('withdraw_customer', withdraw_customer, name='withdraw_customer'), - path('courier', read_restopay_customer, name='read_restopay_courier'), - path('topup_courier', topup_customer, name='topup_courier'), - path('withdraw_courier', withdraw_customer, name='withdraw_courier'), + path('courier', read_restopay_courier, name='read_restopay_courier'), + path('topup_courier', topup_courier, name='topup_courier'), + path('withdraw_courier', withdraw_courier, name='withdraw_courier'), ] \ No newline at end of file diff --git a/restopay/views.py b/restopay/views.py index 07179ad8f274b09cc14b0fd880061996a8c00c94..0fa8ab05b8b9903bec1d22d6dc59702a598510f2 100755 --- a/restopay/views.py +++ b/restopay/views.py @@ -190,8 +190,10 @@ def read_restopay_courier(request): cursor.execute("SET SEARCH_PATH TO PUBLIC") if not request.session.get("isLoggedIn"): + print("nggak login") return redirect('sirest:logout') if not request.session.get("role") == 'courier': + print("nggak kurir") return redirect('sirest:logout') # end of login required