diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d01df7..b6fdd26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +dcLog 1.7.3 - 2023.11.04 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Cosmetic code doc + dcLog 1.7.2 - 2023.10.13 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index c29f792..68aa375 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-1.7.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/dcLog/releases) -![Date](https://img.shields.io/badge/date-2023.10.13-c44d58.svg) +[![Release](https://img.shields.io/badge/release-1.7.3-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/dcLog/releases) +![Date](https://img.shields.io/badge/date-2023.11.04-c44d58.svg) [![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/dcLog) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/dcLog/src/branch/master/LICENSE) @@ -16,7 +16,7 @@ _dcLog_ is a plugin for the open-source web publishing software called [Dotclear * PHP 8.1+ * Dotclear 2.28 -* super admin permission +* Dotclear super admin permission ## USAGE diff --git a/_define.php b/_define.php index e15a85c..198f6d1 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( "Dotclear's logs", 'Displays Dotclear logs', 'Tomtom and Contributors', - '1.7.2', + '1.7.3', [ 'requires' => [['core', '2.28']], 'permissions' => null, diff --git a/dcstore.xml b/dcstore.xml index 5008215..7f17751 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Dotclear's logs - 1.7.2 + 1.7.3 Tomtom and Contributors Displays Dotclear logs - https://git.dotclear.watch/JcDenis/dcLog/releases/download/v1.7.2/plugin-dcLog.zip + https://git.dotclear.watch/JcDenis/dcLog/releases/download/v1.7.3/plugin-dcLog.zip 2.28 https://git.dotclear.watch/JcDenis/dcLog/src/branch/master/README.md https://git.dotclear.watch/JcDenis/dcLog/issues diff --git a/src/Backend.php b/src/Backend.php index 5e50a25..43cc703 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -10,8 +10,8 @@ use Dotclear\Core\Process; use Dotclear\Core\Backend\Favorites; /** - * @brief dcLog backend class. - * @ingroup dcLog + * @brief dcLog backend class. + * @ingroup dcLog * * @author Tomtom (author) * @author Jean-Christian Denis (latest) diff --git a/src/BackendList.php b/src/BackendList.php index 72afa7d..df02f6d 100644 --- a/src/BackendList.php +++ b/src/BackendList.php @@ -20,8 +20,8 @@ use Dotclear\Helper\Html\Form\{ }; /** - * @brief dcLog logs list class. - * @ingroup dcLog + * @brief dcLog logs list class. + * @ingroup dcLog * * @author Tomtom (author) * @author Jean-Christian Denis (latest) diff --git a/src/Manage.php b/src/Manage.php index 355d2cf..fab3c0a 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -1,15 +1,5 @@ isSuperAdmin(); + return match ($context) { + // Limit to super admin + self::MODULE => App::auth()->isSuperAdmin(), + default => null, + }; } }