fix permissions for linking to an order(detail) in search results