Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

396 B
Raw Blame
import { PLUGIN_MONITOR } from "metabase/plugins";
import { hasPremiumFeature } from "metabase-enterprise/settings";

import { getSessionManagementRoutes } from "./routes";

export function initializePlugin() {
  if (hasPremiumFeature("session-management")) {
    PLUGIN_MONITOR.isSessionManagementEnabled = true;
    PLUGIN_MONITOR.getSessionManagementRoutes = getSessionManagementRoutes;
  }
}