预添加前端权限控制
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user