Steps to reproduce :
When showing the debug error output I have the following in the console :
Exception: Access Denied in file concrete/controllers/backend/user_interface/block.php on line 55
This has been tested in 8.3.3a1
I'm seeing the same intermittently on v8.3.2 with content blocks. Some of the exception are occurring in different file locations:
Exception Occurred: .../concrete/controllers/backend/user_interface.php:38 Access Denied (0)
Exception Occurred: .../concrete/controllers/backend/user_interface/block.php:55 Access Denied (0)
Exception Occurred: .../concrete/controllers/backend/user_interface/block.php:68 Access Denied (0)
I have advanced permissions enabled for this site.
This is because editing the block when it's approved actually causes a new version of the block to be created on the new version of the page. Then, the next time we do the submit, we're still passing the old block ID to the form submission.
I bet if we send back the block ID in the error response, and update the hidden bID input field, we could fix this.
editing the block when it's approved actually causes a new version of the block to be created
Why is the new Block Version created when we open the edit Dialog in the first place? - Does it need to be that way? - Isn't that the underlaying issue here?
I think it only needs to create a new Block Version when validation passes. - As long as validation on a block Editing operation fails the block does not change. - So why creating a new Block Version?
That way the Error could be avoided without having to build some sort of "workaround" to update the blockID in the DOM from the validation Error message.
Most helpful comment
Why is the new Block Version created when we open the edit Dialog in the first place? - Does it need to be that way? - Isn't that the underlaying issue here?
I think it only needs to create a new Block Version when validation passes. - As long as validation on a block Editing operation fails the block does not change. - So why creating a new Block Version?
That way the Error could be avoided without having to build some sort of "workaround" to update the blockID in the DOM from the validation Error message.