diff --git a/src/core/pyros_django/monitoring/views.py b/src/core/pyros_django/monitoring/views.py index 7e15470..54e8d43 100644 --- a/src/core/pyros_django/monitoring/views.py +++ b/src/core/pyros_django/monitoring/views.py @@ -6,7 +6,11 @@ from common.models import AgentCmd def index(request): - return HttpResponse("Hello, world. You're at the polls index.") + if request.user.is_authenticated: + # return the initial view (the dashboard's one) + return render(request, 'dashboard/index.html', {'USER_LEVEL': request.user.user_level.priority, 'base_template' : "base.html"}) + return render(request, 'dashboard/index.html', {'USER_LEVEL': 0, 'base_template' : "base_unlogged.html"}) + def weather_config(request): -- libgit2 0.21.2