MOBILE-4715 blog: Disable blog in activities if feature disabled

main
Dani Palou 2024-12-17 12:35:30 +01:00
parent d23160df19
commit 278270c9ee
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ export class CoreCourseModuleSummaryComponent implements OnInit, OnDestroy {
this.courseId = this.courseId || this.module.course; this.courseId = this.courseId || this.module.course;
this.moduleNameTranslated = CoreCourse.translateModuleName(this.module.modname, this.module.modplural); 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 { try {
await Promise.all([ await Promise.all([