Skip to content

Commit

Permalink
Added Auth::LDAP to prevent adding of noAuto=1 (#1760)
Browse files Browse the repository at this point in the history
* Added Auth::LDAP to prevent adding of noAuto=1

Fixes #1744

* Fixed bad copy/paste

Deleted the extra bracket
  • Loading branch information
tomolimo authored and orthagh committed Feb 14, 2017
1 parent aa0dde8 commit 09d6990
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/notificationtarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ function addToAddressesList(array $data) {
}
// It is a GLPI user :
$notificationoption['usertype'] = self::GLPI_USER;
if (Auth::isAlternateAuth($user->fields['authtype'])
if ($user->fields['authtype'] == Auth::LDAP
|| Auth::isAlternateAuth($user->fields['authtype'])
|| (($user->fields['authtype'] == Auth::NOT_YET_AUTHENTIFIED)
&& Auth::isAlternateAuth(Auth::checkAlternateAuthSystems()))) {
$notificationoption['usertype'] = self::EXTERNAL_USER;
Expand Down

0 comments on commit 09d6990

Please sign in to comment.