diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b1648f..2b65656 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +testMail 0.7 - 2023.10.13 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Code review + testMail 0.6 - 2023.10.07 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index 1946b7a..fbb7898 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-0.6-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/testMail/releases) -![Date](https://img.shields.io/badge/date-2023.10.07-c44d58.svg) +[![Release](https://img.shields.io/badge/release-0.7-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/testMail/releases) +![Date](https://img.shields.io/badge/date-2023.10.13-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/testMail) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/testMail/src/branch/master/LICENSE) @@ -14,9 +14,9 @@ _testmail_ is a plugin for the open-source web publishing software called [Dotcl ## REQUIREMENTS -* super admin permission * Dotclear 2.28 * PHP 8.1+ +* super admin permission ## USAGE @@ -35,6 +35,6 @@ Access mail form from admin sidebar system menu **Mail test**. ## CONTRIBUTORS * Osku (author) -* Jean-Christian Denis +* Jean-Christian Denis (latest) You are welcome to contribute to this code. diff --git a/_define.php b/_define.php index ab0be5e..877c964 100644 --- a/_define.php +++ b/_define.php @@ -1,29 +1,27 @@ registerModule( 'Mail test', 'Send a simple mail from admin', 'Osku and contributors', - '0.6', + '0.7', [ 'requires' => [['core', '2.28']], - 'permissions' => null, + 'permissions' => 'My', 'type' => 'plugin', 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', diff --git a/dcstore.xml b/dcstore.xml index c91f651..c35f64b 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Mail test - 0.6 + 0.7 Osku and contributors Send a simple mail from admin - https://git.dotclear.watch/JcDenis/testMail/releases/download/v0.6/plugin-testMail.zip + https://git.dotclear.watch/JcDenis/testMail/releases/download/v0.7/plugin-testMail.zip 2.28 https://git.dotclear.watch/JcDenis/testMail/src/branch/master/README.md https://git.dotclear.watch/JcDenis/testMail/issues diff --git a/src/Backend.php b/src/Backend.php index c01cb2e..603111a 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -16,6 +16,14 @@ namespace Dotclear\Plugin\testMail; use Dotclear\Core\Process; +/** + * @brief testMail backend class. + * @ingroup testMail + * + * @author Osku (author) + * @author Jean-Christian Denis (author) + * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html + */ class Backend extends Process { public static function init(): bool diff --git a/src/Manage.php b/src/Manage.php index a4ada9b..39d5c2f 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -1,15 +1,5 @@ isSuperAdmin(); + return App::task()->checkContext('BACKEND') && App::auth()->isSuperAdmin(); } }