From c3debba5ffea355a5b12a110e6510c0583588fa4 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 21:34:22 +0100 Subject: [PATCH] fix permissions --- _define.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/_define.php b/_define.php index 17f4937..e527918 100644 --- a/_define.php +++ b/_define.php @@ -21,10 +21,12 @@ $this->registerModule( '0.1', [ 'requires' => [['core', '2.24']], - 'permissions' => dcAuth::PERMISSION_USAGE, - 'type' => 'plugin', - 'support' => 'https://github.com/JcDenis/mail2log', - 'details' => 'https://plugins.dotaddict.org/dc2/details/mail2log', - 'repository' => 'https://raw.githubusercontent.com/JcDenis/mail2log/master/dcstore.xml', + 'permissions' => dcCore::app()->auth->makePermissions([ + dcAuth::PERMISSION_USAGE, + ]), + 'type' => 'plugin', + 'support' => 'https://github.com/JcDenis/mail2log', + 'details' => 'https://plugins.dotaddict.org/dc2/details/mail2log', + 'repository' => 'https://raw.githubusercontent.com/JcDenis/mail2log/master/dcstore.xml', ] );