Additional permission parameter for Search ACLs

I suggest building the map somewhere in this file.