pull/5259/head
maliming 5 years ago
parent 835e5466c0
commit 3fa3674552

@ -105,11 +105,9 @@ namespace Volo.Abp.FeatureManagement
protected virtual async Task CheckProviderPolicy(string providerName, string providerKey)
{
string policyName;
if (providerName == TenantFeatureValueProvider.ProviderName)
if (providerName == TenantFeatureValueProvider.ProviderName && CurrentTenant.Id == null && providerKey == null )
{
policyName = CurrentTenant.Id == null && providerKey == null ?
"FeatureManagement.ManageHostFeatures" :
"AbpTenantManagement.Tenants.ManageFeatures";
policyName = "FeatureManagement.ManageHostFeatures";
}
else
{

@ -22,6 +22,7 @@ namespace Volo.Abp.FeatureManagement
//TODO: Should be moved to the Tenant Management module
options.Providers.Add<TenantFeatureManagementProvider>();
options.ProviderPolicies[TenantFeatureValueProvider.ProviderName] = "AbpTenantManagement.Tenants.ManageFeatures";
});
Configure<AbpExceptionLocalizationOptions>(options =>

Loading…
Cancel
Save