mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
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
|
/* This only happens if they have app access. If not, we will
|
||||||
* return a fault below.
|
* return a fault below.
|
||||||
*/
|
*/
|
||||||
$listmeth = $tmp[0] . '.' . $service . '.' . 'list_methods';
|
$listmeth = $class . '.' . $service . '.' . 'list_methods';
|
||||||
$dmap = ExecMethod($listmeth,'xmlrpc');
|
$dmap = ExecMethod($listmeth,'xmlrpc');
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$r = CreateObject('phpgwapi.xmlrpcresp',
|
||||||
|
'',
|
||||||
|
$GLOBALS['xmlrpcerr']['no_access'],
|
||||||
|
$GLOBALS['xmlrpcstr']['no_access']
|
||||||
|
);
|
||||||
|
return $r;
|
||||||
|
}
|
||||||
|
|
||||||
$this->dmap = $dmap;
|
$this->dmap = $dmap;
|
||||||
/* _debug_array($this->dmap);exit; */
|
/* _debug_array($this->dmap);exit; */
|
||||||
}
|
}
|
||||||
|
@ -79,6 +79,8 @@
|
|||||||
$GLOBALS['xmlrpcstr']['no_ssl'] = 'No SSL support compiled in.';
|
$GLOBALS['xmlrpcstr']['no_ssl'] = 'No SSL support compiled in.';
|
||||||
$GLOBALS['xmlrpcerr']['curl_fail'] = 8;
|
$GLOBALS['xmlrpcerr']['curl_fail'] = 8;
|
||||||
$GLOBALS['xmlrpcstr']['curl_fail'] = 'CURL error';
|
$GLOBALS['xmlrpcstr']['curl_fail'] = 'CURL error';
|
||||||
|
$GLOBALS['xmlrpcerr']['no_access'] = 9;
|
||||||
|
$GLOBALS['xmlrpcstr']['no_access'] = 'Access denied';
|
||||||
|
|
||||||
$GLOBALS['xmlrpc_defencoding'] = 'UTF-8';
|
$GLOBALS['xmlrpc_defencoding'] = 'UTF-8';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user