mirror of https://github.com/abpframework/abp
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							29 lines
						
					
					
						
							666 B
						
					
					
				
			
		
		
	
	
							29 lines
						
					
					
						
							666 B
						
					
					
				| using JetBrains.Annotations;
 | |
| using Volo.Abp.GlobalFeatures;
 | |
| 
 | |
| namespace Volo.CmsKit.GlobalFeatures
 | |
| {
 | |
|     [GlobalFeatureName(Name)]
 | |
|     public class RatingsFeature : GlobalFeature
 | |
|     {
 | |
|         public const string Name = "CmsKit.Ratings";
 | |
| 
 | |
|         internal RatingsFeature(
 | |
|             [NotNull] GlobalCmsKitFeatures cmsKit
 | |
|         ) : base(cmsKit)
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         public override void Enable()
 | |
|         {
 | |
|             var userFeature = FeatureManager.Modules.CmsKit().User;
 | |
|             if (!userFeature.IsEnabled)
 | |
|             {
 | |
|                 userFeature.Enable();
 | |
|             }
 | |
| 
 | |
|             base.Enable();
 | |
|         }
 | |
|     }
 | |
| } |