RPC No Permission with Super admin user

More
2 years 11 months ago - 2 years 11 months ago #108059 by stevelegare
stevelegare created the topic: RPC No Permission with Super admin user
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 11 months ago by stevelegare.

Please Log in to join the conversation.

More
2 years 11 months ago #108066 by stevelegare
stevelegare replied the topic: RPC No Permission with Super admin user
export_statistics works only if you are the owner of the survey

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now