@@ -28,7 +28,7 @@ def navigation_context(request: HttpRequest) -> dict[str, Any]:
|
||||
}
|
||||
context = {
|
||||
"app_name": "VacatureRadar",
|
||||
"app_version": "0.3.11",
|
||||
"app_version": settings.VACATURERADAR_VERSION,
|
||||
"app_owner_name": settings.VACATURERADAR_OWNER_NAME,
|
||||
"page_context_label": page_contexts.get(route_key, "Persoonlijke cockpit"),
|
||||
}
|
||||
@@ -38,4 +38,8 @@ def navigation_context(request: HttpRequest) -> dict[str, Any]:
|
||||
.only("id", "name")
|
||||
.first()
|
||||
)
|
||||
context["demo_read_only"] = bool(
|
||||
getattr(settings, "DEMO_READ_ONLY", True)
|
||||
and request.user.username == settings.DEMO_USERNAME
|
||||
)
|
||||
return context
|
||||
|
||||
Reference in New Issue
Block a user