diff --git a/apps/nightpass/views.py b/apps/nightpass/views.py index 7753bc5..8d3d6e3 100644 --- a/apps/nightpass/views.py +++ b/apps/nightpass/views.py @@ -80,7 +80,7 @@ def generate_pass(request, campus_resource): } return HttpResponse(json.dumps(data)) - if user.student.violation_flags > Settings.max_violation_count: + if user.student.violation_flags >= Settings.max_violation_count: data = { 'status':False, 'message':'Nightpass facility has been temporarily suspended! Contact DOSA office for further details.'