Esempio n. 1
0
        /// <summary>
        /// 清除角色关联账户的权限缓存
        /// </summary>
        /// <returns></returns>
        private async Task ClearAccountPermissionCache(Guid buttonId)
        {
            var relationList = await _accountRoleRepository.QueryByButton(buttonId);

            if (relationList.Any())
            {
                foreach (var relation in relationList)
                {
                    _accountService.ClearPermissionListCache(relation.AccountId);
                }
            }
        }