ACL's not working correctly for select all options in export, CRM-14877

Backport of SECURITY FIX