compo.sr site error

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5
#3816 (In Topic #760)

on main page

Under tutorial library...
Access denied for “main_tutorials_carousel” (no further details specified).

Sorry, I wasn't sure where to post this...

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Dave Akins)
#3829
Hi,

Thanks for reporting, no need to be sorry, it's appreciated!

This is now fixed, although it was a rare occurrence.

I'll give a technical explanation to anyone interested…

The tutorial tabs (actually they're Composr blocks) on the home page here are loaded on-demand via AJAX, using a standard Composr method for rendering blocks like that. This is because otherwise the page would take way too long to generate.

As Composr can't just grant anyone access to generated any block via AJAX (security risk) it stores grants against the blocks the page uses when the page is first loaded. i.e. it pre-grants permission for those blocks to be rendered via AJAX.

However, if a session expires, or a grant expires, that error would show. i.e. if the home page is kept open in a tab a long time.

I implemented a hidden option to pre-grant any block without the automated tracking, and pre-granted this block for our site.
1 guest and 0 members have recently viewed this.