Skip to content

Commit

Permalink
Update #86by49r4k made visible on course view page
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaalshaikh committed May 8, 2024
1 parent dcdb7e3 commit 056cb93
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions block_fastnav.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ public function get_content(): object {
// Allow ajax call.
$USER->ajax_updatable_user_prefs['block_fastnav_open'] = true;

// Not visible on course view page.
if ($this->page->user_is_editing() === false
&& $this->page->url->get_path() === '/course/view.php') {
return $this->content;
}

if (has_capability('block/fastnav:management', $this->context)
&& $this->page->user_is_editing()) {
$this->content->text .= $renderer->get_management_buttons($this);
Expand Down

0 comments on commit 056cb93

Please sign in to comment.