diff options
author | 2018-04-01 13:21:10 +0100 | |
---|---|---|
committer | 2018-04-01 13:21:10 +0100 | |
commit | b16b61ca43631a47279560de9c771f0e7791023e (patch) | |
tree | b88820214a4de7765c14b94350620f38e2e1f28a /pysite/views/staff/index.py | |
parent | Adding atom (#49) (diff) |
Fix logging, restrict staff index route
Diffstat (limited to 'pysite/views/staff/index.py')
-rw-r--r-- | pysite/views/staff/index.py | 3 |
1 files changed, 3 insertions, 0 deletions
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") |