From 4ec3ac96103f2f545b0eb3dd56f0a809e93dc8e4 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 11 Oct 2023 21:06:12 +0200 Subject: [PATCH] cosmetic --- CHANGELOG.md | 6 ++++++ src/BackendList.php | 3 +-- src/My.php | 11 ++++++----- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae8bd74..b2c9036 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +enhancePostContent 2023.10.11 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Code review + enhancePostContent 2023.10.08 =========================================================== * Require Dotclear 2.28 diff --git a/src/BackendList.php b/src/BackendList.php index fa16c66..ac8c1b9 100644 --- a/src/BackendList.php +++ b/src/BackendList.php @@ -13,7 +13,6 @@ use Dotclear\Helper\Date; use Dotclear\Helper\Html\Form\Checkbox; use Dotclear\Helper\Html\Html; - /** * @brief enhancePostContent filters list class. * @ingroup enhancePostContent @@ -92,4 +91,4 @@ class BackendList extends Listing implode($cols) . ''; } -} \ No newline at end of file +} diff --git a/src/My.php b/src/My.php index b6576c3..0c7e2b3 100644 --- a/src/My.php +++ b/src/My.php @@ -21,10 +21,11 @@ class My extends MyPlugin { return match ($context) { // Limit main backend featrues to content admin - self::BACKEND, self::MANAGE, self::MENU => - App::auth()->check(App::auth()->makePermissions([ - App::auth()::PERMISSION_CONTENT_ADMIN, - ]), App::blog()->id()), + self::BACKEND, self::MANAGE, self::MENU => App::auth()->check(App::auth()->makePermissions([ + App::auth()::PERMISSION_CONTENT_ADMIN, + ]), App::blog()->id()), default => null, - \ No newline at end of file + }; + } +}