🍓 fix(Filter): 修复添加DB过滤器时的超管判断逻辑
This commit is contained in:
parent
b6381a0660
commit
f656c244a9
@ -295,8 +295,7 @@ public static class SqlSugarSetup
|
||||
};
|
||||
|
||||
// 超管不受任何过滤器限制
|
||||
if (userManager.Value.AccountType?.ToString() == ((int)AccountTypeEnum.SuperAdmin).ToString())
|
||||
return;
|
||||
if (userManager.Value.AccountType == AccountTypeEnum.SuperAdmin)return;
|
||||
|
||||
// 配置假删除过滤器
|
||||
dbProvider.QueryFilter.AddTableFilter<IDeletedFilter>(u => u.IsDelete == false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user