Squashed commit of the following:

commit 368b4fcfd4
Author: 陈淳 <454313500@qq.com>
Date:   Sun Apr 28 11:45:13 2024 +0800

    feat: 完善禁止无权限用户登录

commit 8c343fb01f
Author: 陈淳 <454313500@qq.com>
Date:   Sun Apr 28 11:36:48 2024 +0800

    style: 修复股票api过期问题

commit ae30d4b2cb
Author: 陈淳 <454313500@qq.com>
Date:   Fri Apr 26 19:08:18 2024 +0800

    fix: 修复值对象查询导致问题,已同步sqlsugar更新

commit 4c12626b44
Author: 陈淳 <454313500@qq.com>
Date:   Mon Apr 22 18:15:57 2024 +0800

    feat: 添加值对象

commit d389dcbedf
Author: 陈淳 <454313500@qq.com>
Date:   Mon Apr 22 18:06:09 2024 +0800

    feat: 添加值对象

commit 58ff8f45cf
Author: 陈淳 <454313500@qq.com>
Date:   Mon Apr 22 15:54:25 2024 +0800

    feat: 去除新增的缓存操作

commit 826271c84d
Author: 陈淳 <454313500@qq.com>
Date:   Mon Apr 22 15:39:41 2024 +0800

    feat: 添加缓存crud
This commit is contained in:
陈淳
2024-04-28 11:45:56 +08:00
parent 1f4f98b513
commit 643b284e27

View File

@@ -79,6 +79,10 @@ namespace Yi.Framework.Rbac.Domain.Managers
{
throw new UserFriendlyException(UserConst.No_Role);
}
if (userInfo.PermissionCodes.Count() ==0)
{
throw new UserFriendlyException(UserConst.No_Permission);
}
//这里抛出一个登录的事件
if (_httpContextAccessor.HttpContext is not null)
{