group typo fix

This commit is contained in:
SJ 2014-07-05 17:29:35 +02:00
parent bdae1bab9d
commit 66480ebeb9

View File

@ -129,7 +129,7 @@ class ModelUserAuth extends Model {
$emails = $this->get_email_array_from_ldap_attr($query->rows); $emails = $this->get_email_array_from_ldap_attr($query->rows);
$extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails)); $extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails);
$emails = array_merge($emails, $extra_emails); $emails = array_merge($emails, $extra_emails);
$this->add_session_vars($a['cn'], $username, $emails, $role); $this->add_session_vars($a['cn'], $username, $emails, $role);
@ -281,7 +281,7 @@ class ModelUserAuth extends Model {
if($imap->login($username, $password)) { if($imap->login($username, $password)) {
$imap->logout(); $imap->logout();
$extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails)); $extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails);
$emails = array_merge($emails, $extra_emails); $emails = array_merge($emails, $extra_emails);
$this->add_session_vars($username, $username, $emails, 0); $this->add_session_vars($username, $username, $emails, 0);
@ -310,7 +310,7 @@ class ModelUserAuth extends Model {
try { try {
$conn->login($username, $password); $conn->login($username, $password);
$extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails)); $extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails);
$emails = array_merge($emails, $extra_emails); $emails = array_merge($emails, $extra_emails);
$this->add_session_vars($username, $username, $emails, 0); $this->add_session_vars($username, $username, $emails, 0);
@ -362,7 +362,7 @@ class ModelUserAuth extends Model {
$emails = $this->get_email_array_from_ldap_attr($query->rows); $emails = $this->get_email_array_from_ldap_attr($query->rows);
$extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails)); $extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails);
$emails = array_merge($emails, $extra_emails); $emails = array_merge($emails, $extra_emails);
if($this->check_ldap_membership($ldap_auditor_member_dn, $query->rows) == 1) { $role = 2; } if($this->check_ldap_membership($ldap_auditor_member_dn, $query->rows) == 1) { $role = 2; }