You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
410 B
C#

8 months ago
using Volo.Abp.Data;
namespace NPin.Framework.Upms.Domain.Authorization;
public static class DataPermissionExtensions
{
/// <summary>
/// 关闭数据权限
/// </summary>
/// <param name="dataFilter"></param>
/// <returns></returns>
public static IDisposable DisablePermissionHandler(this IDataFilter dataFilter)
{
return dataFilter.Disable<IDataPermission>();
}
}