Fix update error in access field

This commit is contained in:
Miles Lott 2001-03-24 15:12:33 +00:00
parent 3806a09744
commit 058d9bcb2e

View File

@ -603,7 +603,7 @@
if (empty($ldap_fields[0]['phpgwaccess'])) {
$stock_fields['phpgwaccess'] = $access;
$err = ldap_modify($this->ldap,$dn,array('phpgwaccess' => $stock_fields['phpgwaccess']));
} elseif (!$ldap_fields[0]['owner']) {
} elseif (!$ldap_fields[0]['phpgwaccess']) {
$stock_fields['phpgwaccess'] = $access;
$err = ldap_mod_add($this->ldap,$dn,array('phpgwaccess' => $stock_fields['phpgwaccess']));
}