forked from extern/egroupware
Cleanup GroupDAV code
This commit is contained in:
parent
57adecd8ff
commit
fcf1de6a1c
@ -839,7 +839,7 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
}
|
}
|
||||||
$parts = explode('/', $this->_unslashify($path));
|
$parts = explode('/', $this->_unslashify($path));
|
||||||
|
|
||||||
if ($this->accounts->name2id($parts[0]))
|
if (($account_id = $this->accounts->name2id($parts[0], 'account_lid')))
|
||||||
{
|
{
|
||||||
// /$user/$app/...
|
// /$user/$app/...
|
||||||
$user = array_shift($parts);
|
$user = array_shift($parts);
|
||||||
@ -850,7 +850,7 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
if ($user)
|
if ($user)
|
||||||
{
|
{
|
||||||
$user_prefix = '/'.$user;
|
$user_prefix = '/'.$user;
|
||||||
$user = $this->accounts->name2id($user,'account_lid',$app != 'addressbook' ? 'u' : null);
|
$user = $account_id;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user