patches for custom search permissions