预添加前端权限控制

This commit is contained in:
橙子
2022-05-06 22:47:26 +08:00
parent 3994f14010
commit fd7360e6f4
2 changed files with 32 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ namespace Yi.Framework.WebCore.AttributeExtend
Regex regex = new Regex($"{permission.ToLower()}");
foreach (var p in perList)
{
//过滤多余的标签
p.Replace("Entity","");
p.Replace("entity","");
if (regex.IsMatch(p))
{
result = true;