xf 2 年 前
コミット
575b378861
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/Hotline.Api/Controllers/RoleController.cs

+ 2 - 0
src/Hotline.Api/Controllers/RoleController.cs

@@ -248,6 +248,7 @@ public class RoleController : BaseController
             throw UserFriendlyException.SameMessage("无效accesslevel编号");
         _mapper.Map(dto, access);
         await _tableAccessLevelRepository.UpdateAsync(access, HttpContext.RequestAborted);
+        _tableAccessLevelCacheManager.Reload();
     }
 
     /// <summary>
@@ -274,6 +275,7 @@ public class RoleController : BaseController
     public async Task RemoveAccessLevel(string id)
     {
         await _tableAccessLevelRepository.RemoveAsync(id, cancellationToken: HttpContext.RequestAborted);
+        _tableAccessLevelCacheManager.Reload();
     }
 
     /// <summary>