aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/staff/index.py
blob: 11447f871f7c43382a51301cd144b0d7582d5865 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from pprint import pformat

from flask import current_app

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", app_config=pformat(current_app.config, indent=4, width=120))