diff --git a/README.md b/README.md index ca3cbcc..2d31192 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ The REST API is documented using Swagger (OpenAPI). After installing and running ## Change Log +- 1.1.3 - introduced configurable footer menu for links in bottom of the default template - 1.1.2 - minor security updates (removed unused JS files), setup.py now reads dependencies from requirements.txt - 1.1.1 - Machine API Key rewrited. - API keys for machines are now tied to one of the existing users. If there is a need to have API access for machine, first create service user, and set the access rights. Then create machine key as Admin and assign it to this user. diff --git a/flowapp/__about__.py b/flowapp/__about__.py index bf1e7f9..e34527b 100755 --- a/flowapp/__about__.py +++ b/flowapp/__about__.py @@ -1 +1 @@ -__version__ = "1.1.2" +__version__ = "1.1.3" diff --git a/flowapp/templates/layouts/default.html b/flowapp/templates/layouts/default.html index 53a23a5..0463591 100644 --- a/flowapp/templates/layouts/default.html +++ b/flowapp/templates/layouts/default.html @@ -94,7 +94,22 @@ -

ExaFS {{ session['app_version'] }}

+ diff --git a/flowapp/utils/app_factory.py b/flowapp/utils/app_factory.py index d8bd30e..10a4be6 100644 --- a/flowapp/utils/app_factory.py +++ b/flowapp/utils/app_factory.py @@ -108,6 +108,11 @@ def inject_dashboard(): """Inject dashboard config to templates.""" return {"dashboard": app.config.get("DASHBOARD")} + @app.context_processor + def inject_footer_menu(): + """Inject main menu config to templates.""" + return {"footer_menu": app.config.get("FOOTER_MENU", [])} + return app diff --git a/flowapp/views/admin.py b/flowapp/views/admin.py index 5cc7309..c798a08 100644 --- a/flowapp/views/admin.py +++ b/flowapp/views/admin.py @@ -672,7 +672,6 @@ def update_set_org(): user_with_multiple_orgs = {} for model in models: data_records = model.query.filter(model.org_id == 0).all() - print(f"Found {len(data_records)} records with org_id NULL in {model.__name__}") # Loop through each flowspec record and update org_id based on the user's organization updated = 0 for row in data_records: @@ -683,7 +682,6 @@ def update_set_org(): row.org_id = user_org.id updated += 1 else: - print(f"User {row.user.email} has multiple organizations") user_with_multiple_orgs[row.user.email] = [org.name for org in orgs] # Commit the changes try: