Skip to content

Commit 89480bc

Browse files
committed
Fix wrong check in #375
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
1 parent d43a87f commit 89480bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/Service/ApprovalService.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function getPendingNodes(string $userId, ?int $since = null): array {
238238
}
239239
// is the node in the user storage (does the user have access to this node)?
240240
$nodeInUserStorage = $userFolder->getFirstNodeById($nodeId);
241-
if ($nodeInUserStorage === null) {
241+
if ($nodeInUserStorage !== null) {
242242
$pendingNodes[$nodeId] = [
243243
'node' => $nodeInUserStorage,
244244
'ruleId' => $ruleId,

0 commit comments

Comments
 (0)