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>