Check permissions for searching