From 7b66f9ebdad86af8cb4108cc9033ed1f25217017 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 22:24:27 +0100 Subject: [PATCH] fix permissions --- _define.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_define.php b/_define.php index b7e8cbd..8616a41 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/lastpostsExtend', 'details' => 'http://plugins.dotaddict.org/dc2/details/lastpostsExtend',