Project

General

Profile

Revision 082b75eb

Added by Assos Assos over 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/entity/modules/callbacks.inc
673 673
    if (empty($node->vid) && in_array($op, array('create', 'update'))) {
674 674
      // This is a new node or the original node.
675 675
      if (isset($node->type)) {
676
        $op = !empty($node->is_new) && $node->is_new ? 'create' : 'update';
676
        $op = empty($node->nid) || !empty($node->is_new) ? 'create' : 'update';
677 677
        return node_access($op, $op == 'create' ? $node->type : $node, $account);
678 678
      }
679 679
      else {

Also available in: Unified diff