What is best way to create dynamic roles in ACL? I mean, creating role at runtime.
I am not sure how ACL works. Actually, I have never used that yet. If is ACL executed only once -> I have no idea how to do dynamic roles.
If ACL is executed with every http request, I would create entity 'Role' and entity 'Permission'. Every role would have some permissions. ACL would look for these roles and associated permission with every request in database.. Does it make sense? How you do that?