diff --git a/backend/__init__.py b/backend/__init__.py index 7e3c571..61cdfea 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -15,6 +15,7 @@ from aiohttp import web from dal.data.shared.vault import JWT_SECRET_KEY +from dal.models.role import Role from gd_node.protocols.http.middleware import JWTMiddleware @@ -102,6 +103,8 @@ def main(): # and add to the root main_app.add_subapp(http_prefix, webapp) + # create default role + Role.create_default_roles() # start the application # runs until interrupted web.run_app(main_app, host=HTTP_HOST, port=HTTP_PORT) diff --git a/setup.py b/setup.py index 640b5c6..29bb394 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ "PyYAML==5.1.2", "requests==2.22.0", "movai-core-shared==2.4.1.13", - "data-access-layer==2.4.1.21", + "data-access-layer==2.4.1.22", "gd-node==2.4.1.15", ]