From b587696bcd463e301fa2a6a72ce836d5e0764fc8 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 17:03:55 +0100 Subject: [PATCH] fix permissions --- _define.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_define.php b/_define.php index b75f34c..59f469b 100644 --- a/_define.php +++ b/_define.php @@ -21,7 +21,9 @@ $this->registerModule( '2022.11.20', [ 'requires' => [['core', '2.24']], - 'permissions' => dcAuth::PERMISSION_ADMIN, + 'permissions' => dcCore::app()->auth->makePermissions([ + dcAuth::PERMISSION_ADMIN, + ]), 'type' => 'plugin', 'support' => 'https://github.com/JcDenis/saba', 'details' => 'https://plugins.dotaddict.org/dc2/details/saba',