. * --------------------------------------------------------------------- * @copyright Copyright © 2021 - 2022 Edgard * @license http://www.gnu.org/licenses/gpl.txt GPLv3+ * @link https://github.com/edgardmessias/glpi-singlesignon/ * --------------------------------------------------------------------- */ include('../../../inc/includes.php'); Session::checkRight(User::$rightname, UPDATE); if (isset($_POST["update"]) && isset($_POST["user_id"])) { $prefer = new PluginSinglesignonPreference((int) $_POST["user_id"]); $prefer->loadProviders(); $prefer->update($_POST); Html::back(); } else { Html::back(); }