blob: e5c3c1b0ed1216c6313641700d990c9cd1ad7f0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 = "index"
@require_roles(*ALL_STAFF_ROLES)
def get(self):
return self.render("staff/staff.html")
|