From f9b5fe933bf5481c99c26a65105962d5dec6b57c Mon Sep 17 00:00:00 2001
From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com>
Date: Wed, 24 Jun 2026 10:45:20 +0200
Subject: [PATCH 1/4] 1.4.5
---
CHANGELOG.md | 6 ++++++
oauthimap.xml | 5 +++++
setup.php | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
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/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');
From 1d66bbb34a51b1983f2b35be132a1586e50b593d Mon Sep 17 00:00:00 2001
From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com>
Date: Wed, 24 Jun 2026 11:16:26 +0200
Subject: [PATCH 2/4] fix uninstall
---
hook.php | 2 ++
inc/application.class.php | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/hook.php b/hook.php
index 7e74f96..23cca76 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,
+ ]);
}
}
From 6d705e664c1f4426548c9c44f05117811ce8538a Mon Sep 17 00:00:00 2001
From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com>
Date: Wed, 24 Jun 2026 11:17:49 +0200
Subject: [PATCH 3/4] fix uninstall
---
inc/authorization.class.php | 7 +++++++
1 file changed, 7 insertions(+)
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,
+ ]);
}
}
From 74129fff2d2bd548bcbcbfa39749d911e07c21b0 Mon Sep 17 00:00:00 2001
From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com>
Date: Wed, 24 Jun 2026 11:20:45 +0200
Subject: [PATCH 4/4] fix CS
---
hook.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hook.php b/hook.php
index 23cca76..841d20c 100644
--- a/hook.php
+++ b/hook.php
@@ -67,7 +67,7 @@ function plugin_oauthimap_uninstall()
}
}
-
+
return true;
}