Collections with visibility

This just build up a list of OR'd conditions to find which resources match the visibility levels for the class and the roles for the user