diff options
Diffstat (limited to 'pysite/views')
| -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") | 
