My reading of the Security stuff led me to another question about code execution in the front end. Just when I think I understand everything, I dig a little deeper and come up with questions I can’t answer.
I’m starting a new thread to keep the discussion on that topic.
We’ve established that:
A user group has a context access ACL that gives mgr context access and a policy without access_permissions
The same user group has another context access ACL that gives web context access *with* access_permissions.
Those users can’t access permissions in the Manager but can do so using a front-end tool?
I want to ask about the opposite condition (sort of).
What are the conditions under which plugin and snippet code in the front end that performs Manager actions (e.g. clearing the cache) *won’t* execute because of security settings?
If the web context is *not* protected via any web Context Access ACL entry, all the manager action code should execute in the front end for everyone, logged in or not, right?
Assuming that the web context *is* protected via at least one web Context Access ACL entry . . .
It seems logical that if the front-end user is logged in and doesn’t have the permissions via a web Context Access ACL entry in their user group, the code won’t execute. Is that right?
What about non-logged-in users? It would seem that the code wouldn’t execute for them unless another web Context Access ACL entry granted the permissions for the manager actions contained in the code to 9999 users. Is that correct?
Finally, how does the code know that the permission was denied so it can respond appropriately (or is there an automatic permission denied "alert" in the front end)?