diff --git a/lib/Service/ApprovalService.php b/lib/Service/ApprovalService.php index eab7c080..a7ed108a 100644 --- a/lib/Service/ApprovalService.php +++ b/lib/Service/ApprovalService.php @@ -238,7 +238,7 @@ public function getPendingNodes(string $userId, ?int $since = null): array { } // is the node in the user storage (does the user have access to this node)? $nodeInUserStorage = $userFolder->getFirstNodeById($nodeId); - if ($nodeInUserStorage === null) { + if ($nodeInUserStorage !== null) { $pendingNodes[$nodeId] = [ 'node' => $nodeInUserStorage, 'ruleId' => $ruleId,