Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 53d9c8c0 authored by Nafis Azizi Riza's avatar Nafis Azizi Riza
Browse files

Merge branch 'nafis' into 'main'

Nafis

See merge request !40
parents f92ad4e7 d7907ec4
No related branches found
No related tags found
1 merge request!40Nafis
...@@ -10,7 +10,7 @@ urlpatterns = [ ...@@ -10,7 +10,7 @@ urlpatterns = [
path('customer', read_restopay_customer, name='read_restopay_customer'), path('customer', read_restopay_customer, name='read_restopay_customer'),
path('topup_customer', topup_customer, name='topup_customer'), path('topup_customer', topup_customer, name='topup_customer'),
path('withdraw_customer', withdraw_customer, name='withdraw_customer'), path('withdraw_customer', withdraw_customer, name='withdraw_customer'),
path('courier', read_restopay_customer, name='read_restopay_courier'), path('courier', read_restopay_courier, name='read_restopay_courier'),
path('topup_courier', topup_customer, name='topup_courier'), path('topup_courier', topup_courier, name='topup_courier'),
path('withdraw_courier', withdraw_customer, name='withdraw_courier'), path('withdraw_courier', withdraw_courier, name='withdraw_courier'),
] ]
\ No newline at end of file
...@@ -190,8 +190,10 @@ def read_restopay_courier(request): ...@@ -190,8 +190,10 @@ def read_restopay_courier(request):
cursor.execute("SET SEARCH_PATH TO PUBLIC") cursor.execute("SET SEARCH_PATH TO PUBLIC")
if not request.session.get("isLoggedIn"): if not request.session.get("isLoggedIn"):
print("nggak login")
return redirect('sirest:logout') return redirect('sirest:logout')
if not request.session.get("role") == 'courier': if not request.session.get("role") == 'courier':
print("nggak kurir")
return redirect('sirest:logout') return redirect('sirest:logout')
# end of login required # end of login required
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment