diff --git a/src/OrchardCore.Modules/OrchardCore.Roles/Services/RoleUpdater.cs b/src/OrchardCore.Modules/OrchardCore.Roles/Services/RoleUpdater.cs index a67b6ff3459..50205b8ed7e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Roles/Services/RoleUpdater.cs +++ b/src/OrchardCore.Modules/OrchardCore.Roles/Services/RoleUpdater.cs @@ -117,7 +117,7 @@ private async Task UpdateRolesForEnabledFeatureAsync(IFeatureInfo feature) updated = true; missingFeatures.Remove(feature.Id); - UpdateRoleAsync(role, providers, _logger); + UpdateRolesForEnabledFeature(role, providers, _logger); } if (updated) @@ -175,7 +175,7 @@ private async Task RemoveRoleForMissingFeaturesAsync(string roleName) } } - private static bool UpdateRoleAsync(Role role, IEnumerable providers, ILogger logger) + private static bool UpdateRolesForEnabledFeature(Role role, IEnumerable providers, ILogger logger) { var stereotypes = providers .SelectMany(provider => provider.GetDefaultStereotypes())