Use ICurrentApplicationConfigurationCacheResetService to reset cache on permission changes.

pull/9438/head
Halil İbrahim Kalkan 4 years ago
parent 6fd980f7f0
commit 33c8b48ff2

@ -4,6 +4,7 @@ using System.Linq;
using System.Threading.Tasks;
using Blazorise;
using Microsoft.AspNetCore.Components;
using Volo.Abp.AspNetCore.Components.Web.Configuration;
using Volo.Abp.PermissionManagement.Localization;
namespace Volo.Abp.PermissionManagement.Blazor.Components
@ -11,6 +12,7 @@ namespace Volo.Abp.PermissionManagement.Blazor.Components
public partial class PermissionManagementModal
{
[Inject] private IPermissionAppService PermissionAppService { get; set; }
[Inject] private ICurrentApplicationConfigurationCacheResetService CurrentApplicationConfigurationCacheResetService { get; set; }
private Modal _modal;
@ -133,6 +135,8 @@ namespace Volo.Abp.PermissionManagement.Blazor.Components
await PermissionAppService.UpdateAsync(_providerName, _providerKey, updateDto);
await CurrentApplicationConfigurationCacheResetService.ResetAsync();
await InvokeAsync(_modal.Hide);
}
catch (Exception ex)

Loading…
Cancel
Save