From 07b8ebcbd8d5286695b016f7490fce8cae8b2c5a Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 4 Aug 2015 09:30:53 +0200 Subject: [PATCH] Change form to login when permission has changed to user. Tiquet: #2566 (cherry picked from commit 741442009d8a8765506964ec61f0992902be9a3a) --- pandora_console/include/auth/mysql.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index a1582965bb..5d46314114 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -232,11 +232,18 @@ function process_user_login_remote ($login, $pass, $api = false) { $return = enterprise_hook ('prepare_permissions_groups_of_user_ad', array ($login, $pass, false, true)); - if (!$return) { + if ($return === "error_permissions") { $config["auth_error"] = __("Problems with configuration permissions. Please contact with Administrator"); return false; } + else + { + if ($return === "permissions_changed") { + $config["auth_error"] = __("Please your permmission has change. Login Again"); + return false; + } + } } return $login; }