MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / is_x_pack_ee

Method is_x_pack_ee

apps/tools/serializers/tool.py:419–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

417
418 @staticmethod
419 def is_x_pack_ee():
420 workspace_user_role_mapping_model = DatabaseModelManage.get_model("workspace_user_role_mapping")
421 role_permission_mapping_model = DatabaseModelManage.get_model("role_permission_mapping_model")
422 return workspace_user_role_mapping_model is not None and role_permission_mapping_model is not None
423
424 def get_tools(self):
425 self.is_valid(raise_exception=True)

Callers 3

get_toolsMethod · 0.95
get_toolsMethod · 0.95

Calls 1

get_modelMethod · 0.45

Tested by

no test coverage detected