aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views/checkin.py
diff options
context:
space:
mode:
Diffstat (limited to 'servo/views/checkin.py')
-rw-r--r--servo/views/checkin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/servo/views/checkin.py b/servo/views/checkin.py
index 1a8256a..0c83201 100644
--- a/servo/views/checkin.py
+++ b/servo/views/checkin.py
@@ -44,7 +44,7 @@ def find_device(request):
def find_customer(request, phone):
- if not request.user.is_authenticated():
+ if not request.user.is_authenticated:
raise PermissionDenied
results = []
@@ -116,7 +116,7 @@ def init_session(request):
Only run for GET requests
"""
- if not request.user.is_authenticated():
+ if not request.user.is_authenticated:
request.session.flush()
if not Configuration.checkin_enabled():