feat: 添加权限效验

This commit is contained in:
橙子
2023-12-19 13:00:14 +08:00
parent 0a1095bfc6
commit 9f6f7b8977
8 changed files with 77 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ namespace Yi.Framework.Bbs.Domain.Extensions
/// </summary>
/// <param name="currentUser"></param>
/// <returns></returns>
public static List<string> GetUserPermissions(this ICurrentUser currentUser)
public static List<string> GetPermissions(this ICurrentUser currentUser)
{
return currentUser.FindClaims(TokenTypeConst.Permission).Select(x => x.Value).ToList();