Skip to content

Commit

Permalink
Merge branch 'wip-106847-m403' into MOODLE_403_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
weilai-irl committed Oct 9, 2024
2 parents 7b5dc24 + b933c91 commit 7b8f8c9
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions blocks/microsoft/block_microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ protected function get_course_content() {
$html = '';
$items = [];

$courseheaderdisplayed = false;

if (has_capability('local/o365:teamowner', $this->page->context)) {
$courseheaderdisplayed = true;
}

// Link to course sync options.
if (has_capability('local/o365:teamowner', $this->page->context)) {
$coursesyncsetting = get_config('local_o365', 'coursesync');
Expand All @@ -170,10 +164,8 @@ protected function get_course_content() {
true : false;

if ($canmanage === true || $canview === true) {
if (!$courseheaderdisplayed) {
[$courseheader, $o365record] = $this->get_course_header_and_o365object($courseid);
$html .= $courseheader;
}
[$courseheader, $o365record] = $this->get_course_header_and_o365object($courseid);
$html .= $courseheader;

if ($o365record) {
// Links to course features.
Expand Down

0 comments on commit 7b8f8c9

Please sign in to comment.