forked from extern/egroupware
Return fault code 9 'Access denied' if no app access
This commit is contained in:
parent
4513577695
commit
4264fe7820
@ -318,9 +318,19 @@
|
||||
/* This only happens if they have app access. If not, we will
|
||||
* return a fault below.
|
||||
*/
|
||||
$listmeth = $tmp[0] . '.' . $service . '.' . 'list_methods';
|
||||
$listmeth = $class . '.' . $service . '.' . 'list_methods';
|
||||
$dmap = ExecMethod($listmeth,'xmlrpc');
|
||||
}
|
||||
else
|
||||
{
|
||||
$r = CreateObject('phpgwapi.xmlrpcresp',
|
||||
'',
|
||||
$GLOBALS['xmlrpcerr']['no_access'],
|
||||
$GLOBALS['xmlrpcstr']['no_access']
|
||||
);
|
||||
return $r;
|
||||
}
|
||||
|
||||
$this->dmap = $dmap;
|
||||
/* _debug_array($this->dmap);exit; */
|
||||
}
|
||||
|
@ -79,6 +79,8 @@
|
||||
$GLOBALS['xmlrpcstr']['no_ssl'] = 'No SSL support compiled in.';
|
||||
$GLOBALS['xmlrpcerr']['curl_fail'] = 8;
|
||||
$GLOBALS['xmlrpcstr']['curl_fail'] = 'CURL error';
|
||||
$GLOBALS['xmlrpcerr']['no_access'] = 9;
|
||||
$GLOBALS['xmlrpcstr']['no_access'] = 'Access denied';
|
||||
|
||||
$GLOBALS['xmlrpc_defencoding'] = 'UTF-8';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user