Hi! Thanks for checking out our plugin!
It looks like the access control plugin is restricting access to the /my-post/pdf endpoint because it doesn’t realise /pdf is just an additional parameter, not a separate post from /my-post.
Have you tried using GET parameters instead of rewritten endpoints? i.e. /my-post?pdf or /my-post/?pdf. Perhaps this way the access control plugin doesn’t think this is a separate post and grants access to the PDF version of the post.
All the best,
Antti
Hi! Thanks for checking out our plugin!
It looks like the access control plugin is restricting access to the /my-post/pdf endpoint because it doesn’t realise /pdf is just an additional parameter, not a separate post from /my-post.
Have you tried using GET parameters instead of rewritten endpoints? i.e. /my-post?pdf or /my-post/?pdf. Perhaps this way the access control plugin doesn’t think this is a separate post and grants access to the PDF version of the post.
All the best,
Antti
Hi,
I have a test site under
http://www.rui-nunes.com/educacao-especial-todos-os-alunos/
Login is: demo
Username: demo
Already try using GET instead of /%postname%/ and the result is the same.
Already try usin another access plugin “Pages by User Role” and same thing.
Thank you for your help
My guess is PDF rendering fails because WP PDF Templates can’t access the /pdf-template endpoint to render it. The same sort of thing can occur if the page being rendered requires some sort of session authentification.
Can you make an exception to the access control plugin or perhaps somehow give the plugin credentials pragmatically? Maybe modify the plugin to send cookies along with the file_get_contents() request?
Let me know if I can help any further.
Cheers!
Antti
[marked topic as resolved]