Skip to content

Commit

Permalink
Fix ModernLMS#37 : handle 'must not' condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ak4t0sh committed Jun 10, 2024
1 parent 7f9bd32 commit 1b592c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/condition.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ public function is_available($not, \core_availability\info $info, $grabthelot, $
$allow = true;
}
}

if ($not) {
$allow = !$allow;
}
return $allow;
}

Expand Down

0 comments on commit 1b592c6

Please sign in to comment.