Merge pull request #4269 from dpalou/MOBILE-4715

MOBILE-4715 blog: Disable blog in activities if feature disabled
main
Pau Ferrer Ocaña 2024-12-17 13:16:15 +01:00 committed by GitHub
commit 05ba90ba96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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([