diff --git a/setup.php b/setup.php
index 02f5030..e4b37a7 100644
--- a/setup.php
+++ b/setup.php
@@ -28,7 +28,7 @@
@since 2009
---------------------------------------------------------------------- */
-define ('PLUGIN_UNINSTALL_VERSION', '2.3.0');
+define ('PLUGIN_UNINSTALL_VERSION', '2.3.1');
/**
* Function Init
@@ -51,10 +51,10 @@ function plugin_init_uninstall() {
'Printer'];
if (Session::getLoginUserID()) {
- if (Session::haveRight(PluginUninstallProfile::$rightname, READ)) {
+ if (Session::haveRight('uninstall:profile', READ)) {
$PLUGIN_HOOKS['use_massive_action']['uninstall'] = true;
- if (Session::haveRight('uninstall:profile', READ)) {
+ if (Session::haveRight('uninstall:profile', UPDATE)) {
// Add link in GLPI plugins list :
$PLUGIN_HOOKS["menu_toadd"]['uninstall'] = ['admin' => 'PluginUninstallModel'];
diff --git a/uninstall.xml b/uninstall.xml
index baa5e1d..e40c574 100644
--- a/uninstall.xml
+++ b/uninstall.xml
@@ -23,6 +23,9 @@
Remi Collet
+
+ 2.3.1
+ 9.2
2.3.0
9.2