Return fault code 9 'Access denied' if no app access

This commit is contained in:
Miles Lott 2001-12-28 18:41:33 +00:00
parent 4513577695
commit 4264fe7820
2 changed files with 13 additions and 1 deletions

View File

@ -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; */
} }

View File

@ -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';