mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-31 02:21:28 +01:00
fix for
- bug [ 1428589 ] RC6 - xmlrpc calendar read method returns Access Denied - not working introspection
This commit is contained in:
parent
3bf47432bf
commit
f14ce7e7f1
@ -37,6 +37,7 @@ class bocalendar
|
|||||||
'write' => True,
|
'write' => True,
|
||||||
'search' => True,
|
'search' => True,
|
||||||
'categories'=> True,
|
'categories'=> True,
|
||||||
|
'list_methods' => True,
|
||||||
);
|
);
|
||||||
|
|
||||||
function bocalendar()
|
function bocalendar()
|
||||||
@ -59,7 +60,7 @@ class bocalendar
|
|||||||
*/
|
*/
|
||||||
function list_methods($_type='xmlrpc')
|
function list_methods($_type='xmlrpc')
|
||||||
{
|
{
|
||||||
switch(is_array($_type) ? $_type['type'] : $_type)
|
switch(is_array($_type) ? ($_type['type'] ? $_type['type'] : $_type[0]) : $_type)
|
||||||
{
|
{
|
||||||
case 'xmlrpc':
|
case 'xmlrpc':
|
||||||
return array(
|
return array(
|
||||||
@ -153,6 +154,9 @@ class bocalendar
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// for a single id the event is returned and not an array with the event
|
||||||
|
if (is_array($id)) $events = array_shift($events);
|
||||||
|
|
||||||
if (!$this->cal->check_perms(EGW_ACL_READ,$events,0,$this->xmlrpc_date_format))
|
if (!$this->cal->check_perms(EGW_ACL_READ,$events,0,$this->xmlrpc_date_format))
|
||||||
{
|
{
|
||||||
// xmlrpc_error does NOT return
|
// xmlrpc_error does NOT return
|
||||||
|
Loading…
Reference in New Issue
Block a user