diff --git a/CHANGELOG.md b/CHANGELOG.md index cc74e0e..affa574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added - GLPI 12 compatibility +- Enable `sudo` mode for `Config` ### Fixed diff --git a/inc/config.class.php b/inc/config.class.php index b291aea..0c4671c 100644 --- a/inc/config.class.php +++ b/inc/config.class.php @@ -49,9 +49,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) public function showForm($ID = -1, array $options = []) { - if (!Session::haveRight(Config::$rightname, UPDATE)) { - return false; - } + (new Config())->checkGlobal(UPDATE); $config = self::getConfig(true); @@ -113,6 +111,11 @@ public static function configUpdate($input) return $input; // TODO: Change the autogenerated stub } + protected static function itemTypeRequiresReauthentication(): bool + { + return true; + } + public static function getIcon() { return 'fas fa-tablet-alt';