Révision 082b75eb
Ajouté par Assos Assos il y a environ 6 ans
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 { |
Formats disponibles : Unified diff
Weekly update of contrib modules