Skip to content

Commit 7258398

Browse files
luka-nextcloudbackportbot[bot]
authored andcommitted
fix: share and assign team issue
fix: share and assign team issue Signed-off-by: Luka Trovic <luka@nextcloud.com> [skip ci]
1 parent aa29b0f commit 7258398

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Service/AssignmentService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public function assignUser(int $cardId, string $userId, int $type = Assignment::
114114
$card = $this->cardMapper->find($cardId);
115115
$boardId = $this->cardMapper->findBoardId($cardId);
116116
$boardUsers = array_keys($this->permissionService->findUsers($boardId, true));
117-
$groups = array_filter($this->aclMapper->findAll($boardId), function (Acl $acl) use ($userId) {
117+
$acls = $this->aclMapper->findAll($boardId);
118+
$groups = array_filter($acls, function (Acl $acl) use ($userId) {
118119
return $acl->getType() === Acl::PERMISSION_TYPE_GROUP && $acl->getParticipant() === $userId;
119120
});
120121
if (!in_array($userId, $boardUsers) && count($groups) !== 1) {

0 commit comments

Comments
 (0)