[Vtigercrm-developers] Error : ACCESS_DENIED, Permission to perform the operation is denied for query
Adam Heinz
amh at metricwise.net
Fri Jul 20 07:25:30 PDT 2012
A quick grep of the code pointed me to
http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.4.0/include/Webservices/VtigerWebserviceObject.php#L81
Put some debug statements in that method to figure out what is going on.
On Fri, Jul 20, 2012 at 6:21 AM, ram prasad <ramtrg at gmail.com> wrote:
> Hi
> I am using WSClient library for webservice access in my Javascript
> client.I Logged in properly. When i try to do doQuery(query,callback)
> method, error returns as "ACCESS_DENIED, Permission to perform the operation
> is denied for query".
>
>
> My Javascript code:
>
>> var query="SELECT id FROM vtiger_ws_entity WHERE name = 'Accounts' ";
>> client.doQuery(query,postExecAccQuery);
>> function postExecAccQuery(result, args) {
>> console.log("query result-->"+result);
>> if(result) {
>> var columns = client.getResultColumns(result);
>> alert('COLUMNS: ' + client.toJSONString(columns));
>> alert(client.toJSONString(result));
>> }
>> }
>
>
> Result : "ACCESS_DENIED, Permission to perform the operation is denied for
> query".
>
> Also I tried this query for getting "Account" module id from database.I want
> to do ModuleID+"x"+AccountID. Is it any simple method to this from
> javascript?
>
>
> --
> BY
>
> R.RAMPRASAD
>
>
> _______________________________________________
> http://www.vtiger.com/
More information about the vtigercrm-developers
mailing list