Compare commits

..

2 Commits

2 changed files with 8 additions and 6 deletions
+5 -4
View File
@@ -406,7 +406,7 @@ def _is_inventory_module_path(path):
if not path:
return False
if path == '/' or path == '/home':
if path == '/' or path.startswith('/home'):
return True
inventory_prefixes = (
@@ -416,7 +416,10 @@ def _is_inventory_module_path(path):
'/manage_filters',
'/manage_locations',
'/admin_borrowings',
'/admin_damaged_items'
'/admin_damaged_items',
'/admin/borrowings',
'/admin/damaged_items',
'/terminplan',
)
return path.startswith(inventory_prefixes)
@@ -434,8 +437,6 @@ def _enforce_module_access():
def _get_current_module(path):
"""Resolve the active UI module for navbar separation."""
# Check if referer indicates we came from library
referrer = request.referrer or ''
if cfg.LIBRARY_MODULE_ENABLED and _is_library_module_path(path):
session['last_module'] = 'library'
+3 -2
View File
@@ -11,7 +11,7 @@
services:
# Management Container for multi-tenant scripts
tenant-manager:
image: docker:cli
image: python:3.12-alpine
container_name: tenant-manager
restart: "no"
profiles:
@@ -19,7 +19,8 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/workspace
entrypoint: ["sh", "-c", "cd /workspace && ./manage-tenant.sh \"$$@\"", "--"]
entrypoint: >
sh -c "apk add --no-cache bash docker-cli && cd /workspace && ./manage-tenant.sh \"$$@\"" --
redis:
image: redis:7-alpine