mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
21 lines
425 B
Python
21 lines
425 B
Python
from flask import Blueprint
|
|
from flask_login import login_required
|
|
from app.decorators import admin_required
|
|
|
|
|
|
bp = Blueprint('admin', __name__)
|
|
|
|
|
|
@bp.before_request
|
|
@login_required
|
|
@admin_required
|
|
def before_request():
|
|
'''
|
|
Ensures that the routes in this package can be visited only by users with
|
|
administrator privileges (login_required and admin_required).
|
|
'''
|
|
pass
|
|
|
|
|
|
from . import json_routes, routes
|