Change form to login when permission has changed to user. Tiquet: #2566

(cherry picked from commit 741442009d)
This commit is contained in:
m-lopez-f 2015-08-04 09:30:53 +02:00
parent fb2582a518
commit 07b8ebcbd8
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}