[WIP] Fix acl resolution with multiple groups

Fixes the resolution of multiple groups ACL.