From c0385c2098ccc831105c4fe83f3d30065ec58f91 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Sun, 24 Jul 2022 15:51:49 +0300
Subject: [PATCH] public: allow system plugins to expose public methods

---
 classes/handler/public.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/handler/public.php b/classes/handler/public.php
index bea48b6b1..e1486e753 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -785,7 +785,7 @@ class Handler_Public extends Handler {
 		$plugin_name = basename(clean($_REQUEST["plugin"]));
 		$method = clean($_REQUEST["pmethod"]);
 
-		$host->load($plugin_name, PluginHost::KIND_USER, 0);
+		$host->load($plugin_name, PluginHost::KIND_ALL, 0);
 		//$host->load_data();
 
 		$plugin = $host->get_plugin($plugin_name);
-- 
GitLab