Skip to content

Commit 27d75c7

Browse files
grnd-altbackportbot[bot]
authored andcommitted
fix: cast boardUsers to string
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent a2940a5 commit 27d75c7

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
@@ -117,7 +117,7 @@ public function assignUser($cardId, $userId, int $type = Assignment::TYPE_USER)
117117

118118
$card = $this->cardMapper->find($cardId);
119119
$boardId = $this->cardMapper->findBoardId($cardId);
120-
$boardUsers = array_keys($this->permissionService->findUsers($boardId, true));
120+
$boardUsers = array_map(fn (string|int $userId) => (string)$userId, array_keys($this->permissionService->findUsers($boardId, true)));
121121
$acls = $this->aclMapper->findAll($boardId);
122122
$groups = array_filter($acls, function (Acl $acl) use ($userId) {
123123
return $acl->getType() === Acl::PERMISSION_TYPE_GROUP && $acl->getParticipant() === $userId;

0 commit comments

Comments
 (0)