Add new roles and a new permission

This commit is contained in:
Patrick Jentsch
2021-12-03 14:07:03 +01:00
parent 89f518fe38
commit 123537cd16
5 changed files with 56 additions and 10 deletions

View File

@ -39,8 +39,9 @@ def create_app(config_class=Config):
message_queue=app.config.get('NOPAQUE_SOCKETIO_MESSAGE_QUEUE_URI')
)
from .utils import HashidConverter
from .utils import HashidConverter, permission_context_processor
app.url_map.converters['hashid'] = HashidConverter
app.context_processor(permission_context_processor)
from .events import socketio as socketio_events
from .events import sqlalchemy as sqlalchemy_events