diff --git a/src/Model/Table/EncryptionKeysTable.php b/src/Model/Table/EncryptionKeysTable.php index 5f4d54a..00b9ab4 100644 --- a/src/Model/Table/EncryptionKeysTable.php +++ b/src/Model/Table/EncryptionKeysTable.php @@ -195,7 +195,7 @@ class EncryptionKeysTable extends AppTable return true; } } else { - if ($entity['owner_id'] === $user['id']) { + if ($entity['owner_id'] === $user['individual_id']) { return true; } }