From b16b61ca43631a47279560de9c771f0e7791023e Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sun, 1 Apr 2018 13:21:10 +0100 Subject: Fix logging, restrict staff index route --- pysite/views/staff/index.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pysite/views/staff/index.py') diff --git a/pysite/views/staff/index.py b/pysite/views/staff/index.py index 683b3a77..2c93dd1a 100644 --- a/pysite/views/staff/index.py +++ b/pysite/views/staff/index.py @@ -1,10 +1,13 @@ # coding=utf-8 from pysite.base_route import RouteView +from pysite.constants import ALL_STAFF_ROLES +from pysite.decorators import require_roles class StaffView(RouteView): path = "/" name = "staff.index" + @require_roles(*ALL_STAFF_ROLES) def get(self): return self.render("staff/staff.html") -- cgit v1.2.3