Skip to content

Commit

Permalink
Fixed access permission to provider config
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jan 20, 2021
1 parent 846052d commit 1937c6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front/provider.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

include ('../../../inc/includes.php');

Session::checkRight("config", UPDATE);

if (!isset($_GET["id"])) {
$_GET["id"] = "";
}
Expand Down
2 changes: 2 additions & 0 deletions front/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

include ('../../../inc/includes.php');

Session::checkRight("config", UPDATE);

if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
Html::header(__sso('Single Sign-on'), $_SERVER['PHP_SELF'], "config", "pluginsinglesignonprovider", "");
} else {
Expand Down

0 comments on commit 1937c6c

Please sign in to comment.