Skip to content

Commit 48cc192

Browse files
authored
Merge pull request #8066 from nextcloud/fix/cast-boardUsers-keys-to-string
fix: cast boardUsers to string
2 parents 41efa52 + e329203 commit 48cc192

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/AssignmentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function assignUser(int $cardId, string $userId, int $type = Assignment::
6262

6363
$card = $this->cardMapper->find($cardId);
6464
$boardId = $this->cardMapper->findBoardId($cardId);
65-
$boardUsers = array_keys($this->permissionService->findUsers($boardId, true));
65+
$boardUsers = array_map(fn (string|int $userId) => (string)$userId, array_keys($this->permissionService->findUsers($boardId, true)));
6666
$acls = $this->aclMapper->findAll($boardId);
6767
$groups = array_filter($acls, function (Acl $acl) use ($userId) {
6868
return $acl->getType() === Acl::PERMISSION_TYPE_GROUP && $acl->getParticipant() === $userId;

0 commit comments

Comments
 (0)