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 @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added

- GLPI 12 compatibility
- Enable `sudo` mode for `Credential` and `DatabaseParam`

## [1.1.4] - 2026-08-03

Expand Down
2 changes: 1 addition & 1 deletion front/credential.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

use Glpi\Event;

Session::checkRight(Config::$rightname, READ);
(new Config())->checkGlobal(READ);

$_GET['id'] ??= '';

Expand Down
2 changes: 1 addition & 1 deletion front/credential.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* -------------------------------------------------------------------------
*/

Session::checkRight(Config::$rightname, UPDATE);
(new Config())->checkGlobal(UPDATE);

Html::header(
PluginDatabaseinventoryCredential::getTypeName(Session::getPluralNumber()),
Expand Down
2 changes: 1 addition & 1 deletion front/databaseparam.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

use Glpi\Event;

Session::checkRight(Config::$rightname, READ);
(new Config())->checkGlobal(READ);

$_GET['id'] ??= '';

Expand Down
2 changes: 1 addition & 1 deletion front/databaseparam.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* -------------------------------------------------------------------------
*/

Session::checkRight(Config::$rightname, UPDATE);
(new Config())->checkGlobal(UPDATE);

Html::header(
PluginDatabaseinventoryDatabaseParam::getTypeName(Session::getPluralNumber()),
Expand Down
5 changes: 5 additions & 0 deletions inc/credential.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ public function rawSearchOptions()
return $tab;
}

protected static function itemTypeRequiresReauthentication(): bool
{
return true;
}

public function showForm($ID, array $options = [])
{
$this->initForm($ID, $options);
Expand Down
5 changes: 5 additions & 0 deletions inc/databaseparam.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ public function rawSearchOptions()
return $tab;
}

protected static function itemTypeRequiresReauthentication(): bool
{
return true;
}

public function getCredentialTypeLinked()
{
/** @var DBmysql $DB */
Expand Down