Merge pull request #4269 from dpalou/MOBILE-4715
MOBILE-4715 blog: Disable blog in activities if feature disabled
This commit is contained in:
		
						commit
						05ba90ba96
					
				| @ -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([ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user