Bug in preview of docs editor

When writing a documentation page the preview button on the markdown editor AJAX returns a 500 error.

Originally posted on Github as

Request

Request URL:
https://documentation.concretecms.org/ccm/system/block/action/edit_composer/4943/Main/12/preview
Request Method:
POST
Status Code:
500 Internal Server Error

Response

{"error":{"message":"Access Denied"},"errors":["Access Denied"]}
 

How to reproduce

Login to the documentation site as a mere mortal.

Add a tutorial. Edit the body in the markdown editor. Click to preview.

Thanks @JohntheFish we’ve got this one in the tracker.