2019-07-05 12:47:35 +00:00
|
|
|
from flask import Blueprint
|
|
|
|
|
|
|
|
main = Blueprint('main', __name__)
|
|
|
|
|
2019-07-09 13:41:16 +00:00
|
|
|
|
|
|
|
from . import views, errors
|
|
|
|
from ..models import Permission
|
|
|
|
|
|
|
|
|
|
|
|
@main.app_context_processor
|
|
|
|
def inject_permissions():
|
|
|
|
return dict(Permission=Permission)
|