From f5442e1eb2d788aef6cf97a1e3f330ecdba68a29 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 17:07:07 +0100 Subject: [PATCH] fix permissions --- _define.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_define.php b/_define.php index bcd8e2c..20c9c35 100644 --- a/_define.php +++ b/_define.php @@ -21,7 +21,9 @@ $this->registerModule( '0.10', [ 'requires' => [['core', '2.24']], - 'permissions' => dcAuth::PERMISSION_CONTENT_ADMIN, + 'permissions' => dcCore::app()->auth->makePermissions([ + dcAuth::PERMISSION_CONTENT_ADMIN, + ]), 'type' => 'plugin', 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=333002#p333002', 'details' => 'http://plugins.dotaddict.org/dc2/details/topWriter',