Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Nov 25, 2023
1 parent aed7df3 commit 8ba5c95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions classes/condition.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public function get_description($full, $not, \core_availability\info $info) {
$context = $info->get_context();

$params = [
'id' => 0,
'cost' => $cost,
'courseid' => $info->get_course()->id,
'contextid' => $context->id,
Expand Down
4 changes: 4 additions & 0 deletions classes/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ protected function allow_add($course, \cm_info $cm = null, \section_info $sectio
$wallet = $tree->get_all_children('availability_wallet\condition');
if (!empty($wallet)) {
$allow = false;
} else {
$allow = true;
}
} else {
$allow = true;
}
} catch (\coding_exception $c) {
$allow = true;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ba5c95

Please sign in to comment.