首检添加数据看板
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Infrastructure;
|
||||
using Infrastructure.Extensions;
|
||||
using Infrastructure.Extensions;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Newtonsoft.Json;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
@@ -133,7 +132,7 @@ namespace ZR.Admin.WebApi.Framework
|
||||
loginUser = JsonConvert.DeserializeObject<LoginUser>(userData);
|
||||
//todo 从缓存拿到权限,如果拿不到权限说明非法用户
|
||||
var permissions = CacheService.GetUserPerms(GlobalConstant.UserPermKEY + loginUser?.UserId);
|
||||
|
||||
|
||||
if (loginUser?.UserName == GlobalConstant.AdminRole)
|
||||
{
|
||||
permissions = new List<string>() { GlobalConstant.AdminPerm };
|
||||
|
||||
Reference in New Issue
Block a user