diff --git a/src/Model/Table/UsersTable.php b/src/Model/Table/UsersTable.php index 39cd123..66254e2 100644 --- a/src/Model/Table/UsersTable.php +++ b/src/Model/Table/UsersTable.php @@ -93,7 +93,7 @@ class UsersTable extends AppTable if (!empty($entity->meta_fields)) { foreach ($entity['meta_fields'] as $metaField) { if ($metaField['field'] === $permission_name) { - if (!$entity->new) { + if (!$entity->isNew()) { $conditions = [ 'field' => $permission_name, 'scope' => 'user', 'parent_id' => $entity->id ]; diff --git a/src/VERSION.json b/src/VERSION.json index 8610ab4..90068f3 100644 --- a/src/VERSION.json +++ b/src/VERSION.json @@ -1,4 +1,4 @@ { - "version": "1.19", + "version": "1.20", "application": "Cerebrate" }