From 5d97019d5d30b259b84feba246eeb4ee08b42a99 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Jul 2016 13:52:22 +0300 Subject: [PATCH] api: load user plugins properly --- api/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/index.php b/api/index.php index a8484ef0e..b02a5d679 100644 --- a/api/index.php +++ b/api/index.php @@ -57,6 +57,10 @@ if (!init_plugins()) return; + if ($_SESSION["uid"]) { + load_user_plugins( $_SESSION["uid"]); + } + $method = strtolower($_REQUEST["op"]); $handler = new API($_REQUEST);