mirror of
https://github.com/hanzoai/helpdesk.git
synced 2026-10-12 16:56:02 +00:00
Load the telemetry plugin for signed-in sessions only
Hanzo CI/CD / cicd (push) Waiting to run
CI/CD / cicd (push) Waiting to run
Hanzo CI/CD / cicd (push) Waiting to run
CI/CD / cicd (push) Waiting to run
Frappe refuses the telemetry switch to guests, so a guest opening the Help Center no longer sends a request that answers 403. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
+4
-1
@@ -66,7 +66,10 @@ app.use(FrappeUI);
|
||||
app.use(pinia);
|
||||
app.use(router);
|
||||
app.use(translationPlugin);
|
||||
app.use(telemetryPlugin, { app_name: "helpdesk" });
|
||||
// Frappe answers the telemetry switch for signed-in users only.
|
||||
if (window.session_user !== "Guest") {
|
||||
app.use(telemetryPlugin, { app_name: "helpdesk" });
|
||||
}
|
||||
|
||||
for (const c in globalComponents) {
|
||||
app.component(c, globalComponents[c]);
|
||||
|
||||
Reference in New Issue
Block a user