RPC No Permission with Super admin user

More
3 years 7 months ago - 3 years 7 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: 3 years 7 months ago by stevelegare.

Please Log in to join the conversation.

More
3 years 7 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
Join our Newsletter!