compo.sr site error
Posted
#3882
(In Topic #764)
Standard member

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...
Posted

Site director

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.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
1 guest and 0 members have just viewed this.