diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bb18e0..2ecbdc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.4.5] - 2026-06-24 + +### Fixed + +- Improve authorization checks + ## [1.4.4] - 2025-09-19 ## Fix diff --git a/hook.php b/hook.php index 7e74f96..841d20c 100644 --- a/hook.php +++ b/hook.php @@ -67,6 +67,8 @@ function plugin_oauthimap_uninstall() } } + + return true; } diff --git a/inc/application.class.php b/inc/application.class.php index efd1efc..b8b461d 100644 --- a/inc/application.class.php +++ b/inc/application.class.php @@ -668,8 +668,15 @@ public static function install(Migration $migration) */ public static function uninstall(Migration $migration) { + /** @var DBmysql $DB */ + global $DB; + $table = self::getTable(); $migration->displayMessage("Uninstalling $table"); $migration->dropTable($table); + + $DB->delete('glpi_displaypreferences', [ + 'itemtype' => self::class, + ]); } } diff --git a/inc/authorization.class.php b/inc/authorization.class.php index 97206df..9d18908 100644 --- a/inc/authorization.class.php +++ b/inc/authorization.class.php @@ -627,8 +627,15 @@ public static function install(Migration $migration) */ public static function uninstall(Migration $migration) { + /** @var DBmysql $DB */ + global $DB; + $table = self::getTable(); $migration->displayMessage("Uninstalling $table"); $migration->dropTable($table); + + $DB->delete('glpi_displaypreferences', [ + 'itemtype' => self::class, + ]); } } diff --git a/oauthimap.xml b/oauthimap.xml index 4aff194..cd5f0ce 100644 --- a/oauthimap.xml +++ b/oauthimap.xml @@ -27,6 +27,11 @@ It permits emails fetching from G Suite and Azure AD mailboxes. TECLIB' + + 1.4.5 + ~10.0.11 + https://github.com/pluginsGLPI/oauthimap/releases/download/1.4.5/glpi-oauthimap-1.4.5.tar.bz2 + 1.4.4 ~10.0.11 diff --git a/setup.php b/setup.php index c99a83b..8c95ec8 100644 --- a/setup.php +++ b/setup.php @@ -28,7 +28,7 @@ * ------------------------------------------------------------------------- */ -define('PLUGIN_OAUTHIMAP_VERSION', '1.4.4'); +define('PLUGIN_OAUTHIMAP_VERSION', '1.4.5'); // Minimal GLPI version, inclusive define('PLUGIN_OAUTHIMAP_MIN_GLPI', '10.0.11');