Bläddra i källkod

自定义表单数据权限查询

中职版本
liangkun 4 år sedan
förälder
incheckning
e8d58165a6
2 ändrade filer med 17 tillägg och 2 borttagningar
  1. +13
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/DataAuthorize/DataAuthorizeBLL.cs
  2. +4
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Interface/InterfaceBLL.cs

+ 13
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/DataAuthorize/DataAuthorizeBLL.cs Visa fil

@@ -257,7 +257,19 @@ namespace Learun.Application.Base.AuthorizeModule
} }
else else
{ {
relationListId = url;
//liangkun 20200923修改
//自定义表单也需要增加数据权限验证功能
//relationListId = url;
InterfaceEntity interfaceEntity = interfaceIBLL.GetEntityByUrl("/LR_FormModule/FormRelation/PreviewIndex?id=" + url);
if (interfaceEntity == null)
{
// 如果接口没有注册则不作过滤
return true;
}
else
{
relationListId = interfaceEntity.F_Id;
}
} }


List<DataAuthorizeRelationEntity> relationList = (List<DataAuthorizeRelationEntity>)GetRelationList(relationListId); List<DataAuthorizeRelationEntity> relationList = (List<DataAuthorizeRelationEntity>)GetRelationList(relationListId);


+ 4
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Interface/InterfaceBLL.cs Visa fil

@@ -148,7 +148,10 @@ namespace Learun.Application.Base.SystemModule
{ {
if (url.Contains("?")) if (url.Contains("?"))
{ {
url = url.Substring(0, url.IndexOf('?'));
if (!url.Contains("/LR_FormModule/FormRelation/PreviewIndex"))
{
url = url.Substring(0, url.IndexOf('?'));
}
} }
List<InterfaceEntity> list = GetList(); List<InterfaceEntity> list = GetList();
return list.Find(t => t.F_Address == url); return list.Find(t => t.F_Address == url);


Laddar…
Avbryt
Spara