Skip to content

Commit 91cd9eb

Browse files
committed
fix: [encryptionKeys:add] Make sure to compare owner_id with individual_id
1 parent 3a3494d commit 91cd9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Table/EncryptionKeysTable.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function canEditForIndividual($user, $entity): bool
195195
return true;
196196
}
197197
} else {
198-
if ($entity['owner_id'] === $user['id']) {
198+
if ($entity['owner_id'] === $user['individual_id']) {
199199
return true;
200200
}
201201
}

0 commit comments

Comments
 (0)