Check out the LimeSurvey source code on GitHub!

RPC No Permission with Super admin user

More
2 years 9 months ago - 2 years 9 months ago #108059 by stevelegare
Can someone help me with this one.

I'm calling export_statistics via RPC but var_dump() returns "Error: No Permission" when my session key is set with a super admin user.

Can you help me?
Thanks
$sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
$responses = $myJSONRPCClient->export_statistics (
$sessionKey,
$survey_id,
"pdf",
"fr",
"1"
);
file_put_contents("stat.pdf", base64_decode($responses),LOCK_EX);
var_dump($responses);
Last Edit: 2 years 9 months ago by stevelegare.

Please Log in to join the conversation.

More
2 years 9 months ago #108066 by stevelegare
export_statistics works only if you are the owner of the survey

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form