staff message add permission

This commit is contained in:
xiaomlove
2022-08-22 21:07:06 +08:00
parent f55fef594c
commit 4b30804121
11 changed files with 219 additions and 59 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ class Hook
public function applyFilter($name, $value = '')
{
if (!isset(self::$callbacks[$name])) {
do_log("No this hook: $name");
do_log("No this hook: $name", 'debug');
return $value;
}
$args = func_get_args();
@@ -59,7 +59,7 @@ class Hook
public function doAction($name, $value = '')
{
if (!isset(self::$callbacks[$name])) {
do_log("No this hook: $name");
do_log("No this hook: $name", 'debug');
return;
}
$args = func_get_args();
+1 -1
View File
@@ -11,7 +11,7 @@ class Plugin
$this->bootPlugins();
}
public function enabled($name): bool
public static function enabled($name): bool
{
return !empty(self::$providers[$name]['providers']);
}