When writing a documentation page the preview button on the markdown editor AJAX returns a 500 error.
Originally posted on Github as
opened 02:53PM - 09 Jan 24 UTC
closed 07:32PM - 19 Jan 24 UTC
Type:Bug
### Affected Version of Concrete CMS
9.x
### Description
When writing a… documentation page the preview button on the markdown editor AJAX returns a 500 error.
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.
![image](https://github.com/concretecms/concretecms/assets/1260106/6ed278c4-6069-48b3-9e90-b70bb12ce29d)
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.