From 278270c9eefde925bebc981c2880292c70d03919 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 17 Dec 2024 12:35:30 +0100 Subject: [PATCH] MOBILE-4715 blog: Disable blog in activities if feature disabled --- .../course/components/module-summary/module-summary.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/features/course/components/module-summary/module-summary.ts b/src/core/features/course/components/module-summary/module-summary.ts index b9a32df7e..5c0f53626 100644 --- a/src/core/features/course/components/module-summary/module-summary.ts +++ b/src/core/features/course/components/module-summary/module-summary.ts @@ -180,7 +180,8 @@ export class CoreCourseModuleSummaryComponent implements OnInit, OnDestroy { this.courseId = this.courseId || this.module.course; this.moduleNameTranslated = CoreCourse.translateModuleName(this.module.modname, this.module.modplural); - this.blog = await AddonBlog.isPluginEnabled(); + this.blog = !CoreSites.getCurrentSite()?.isFeatureDisabled('CoreCourseOptionsDelegate_AddonBlog') && + await AddonBlog.isPluginEnabled(); try { await Promise.all([