Add closure support for `accessControl`

This fixes the issue where the `accessControl` wouldn't accept a closure.