mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
fixed wrong call name2id to get account_lid of owner, causing lot of database access and returning nothing, as account_id for given
This commit is contained in:
parent
1d2a4ae065
commit
a50f785224
@ -560,7 +560,7 @@ abstract class groupdav_handler
|
||||
}
|
||||
}
|
||||
if ($this->groupdav->prop_requested('owner') === true && !isset($props['owner']) &&
|
||||
($account_lid = $this->accounts->name2id($entry['owner'])))
|
||||
($account_lid = $this->accounts->id2name($entry['owner'])))
|
||||
{
|
||||
$type = $this->accounts->get_type($entry['owner']) == 'u' ? 'users' : 'groups';
|
||||
$props['owner'] = HTTP_WebDAV_Server::mkprop('href', $this->base_uri.'/principals/'.$type.'/'.$account_lid.'/');
|
||||
|
Loading…
Reference in New Issue
Block a user