From 91cd9eb1806ddbdf7eb97bb5ef5e3cf25285e771 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 29 Mar 2024 16:46:47 +0100 Subject: [PATCH] fix: [encryptionKeys:add] Make sure to compare owner_id with individual_id --- src/Model/Table/EncryptionKeysTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }