You do not have permission

Permalink Browser Info Environment
Page list with thumbnail is loaded by 'blocks by ajax'. Everything worked fine, but today my block suddenly doesn't load but just returns this: "You do not have permission.". I haven't changed anything at all since it worked. What's going on?

I hope you can help,
Donleavy

Type: Discussion
Status: Archived
donleavy
View Replies:
donleavy replied on at Permalink Reply
donleavy
Hmmmm. I logged in, went to the permissions properties for the page, did nothing, saved, logged out and now it works again. I have never changed the permissions at all - all pages have always been available to guest users. Strange.

Any thoughts?
JohntheFish replied on at Permalink Reply
JohntheFish
Is it the page containing the ajaxed block that returns the message or the ajax load of the block?

If it is the page, then the problem is somewhere within the setting of c5 permissions (looks like you have eliminated that possibility)

If it is the ajax load, then this has arisen because an encrypted security key passed through by the ajax call has failed validation. This uses the concrete5 encryption helper, so is subject to any encryption lifespan limitations the c5 helper imposes (or your php environment imposes as this probably goes all the way back to the php environment). If the page is cached, maybe the cache lifespan is greater than the encryption lifespan.

By logging in and saving, you cleared the cache for the page. Hence the encrypted token has been regenerated.

It could also be a one off corruption of the security key. In which case just keep an eye on it for a while and see if the issue repeats.

If it does repeat, please open a support request and post the content of the ajax network request post data (from the browser developer console).
JohntheFish replied on at Permalink Reply
JohntheFish
v1.1.1
I have just uploaded a minor revision that I needed to integrate with another addon (a small change to the data in the events fired by the ajax handler). While doing this, I also changed the details of one of the error messages to provide clearer diagnostics should your glitch recur.
donleavy replied on at Permalink Reply
donleavy
Thanks! I'll see if the problem reoccurs. (It was definitely the ajax block....)
Your explanation made perfect sense.

/Dl

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.