How to hide node edit / delete link in a view conditionally? I have a view that lists a content type in a table. There are edit/delete links so the users can edit the content. I want to display these links conditionally.

These are just orders sent in by customers and I only want to let them edit or delete them until the "status" field is set to "processed". Once their order has been processed, they shouldn't be able to modify nor delete it.
I can show them a message via a custom module, but it would be nice to remove the edit/delete buttons for these nodes.
Although an old issue, the way to do this in D7 commerce is with

hook_commerce_entity_access

/**
 * Implements hook_commerce_entity_access
 */
function MODULE_commerce_entity_access($op, $entity, $account, $entity_type) {
  if ($entity_type == 'commerce_order') {
    // Prevent edit and delete of 'processed' status orders
    if ($entity-&gt;status == 'processed' &amp;&amp; ($op == 'edit' || $op == 'delete')) {
      return FALSE;
    }
  }
}