Browse Source

api: load user plugins properly

Andrew Dolgov 4 years ago
parent
commit
5d97019d5d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      api/index.php

+ 4 - 0
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);