diff --git a/www/web/warpfood/views.py b/www/web/warpfood/views.py index b070b190a0993fd2acec1538e1d10b2a4112bb50..15d3a02cd2cf02e970c1e5c6d5822dc458b3c1e2 100644 --- a/www/web/warpfood/views.py +++ b/www/web/warpfood/views.py @@ -17,7 +17,7 @@ from datetime import datetime, timedelta def index(request): form = FoodSheetForm() - if request.user.is_superuser: + if request.user.is_authenticated(): if request.method == 'POST': form = FoodSheetForm(request.POST) if form.is_valid(): @@ -33,7 +33,7 @@ def index(request): def edit_sheet(request, sheet_id=0): - if sheet_id != 0 and request.user.is_superuser: + if sheet_id != 0 and request.user.is_superuser(): try: sheet = FoodSheet.objects.get(id=sheet_id) except Exception as e: