Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- GLPI 12 compatibility
- Enable `sudo` mode for `Config`

### Fixed

Expand Down
9 changes: 6 additions & 3 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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';
Expand Down