mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-03-28 04:03:24 +08:00
🐛fix: #ICZD3Z
This commit is contained in:
@@ -75,7 +75,7 @@ namespace OpenAuth.App
|
||||
ISqlSugarClient defualtClient = SugarClient;
|
||||
var currentConfigId = SugarClient.CurrentConnectionConfig.ConfigId;
|
||||
if(currentConfigId != null && currentConfigId.ToString() !=""){
|
||||
defualtClient = SugarClient.AsTenant().GetConnection(Define.DEFAULT_TENANT_ID);
|
||||
defualtClient = SugarClient.AsTenant().GetConnection("");
|
||||
}
|
||||
var rule = defualtClient.Queryable<DataPrivilegeRule>().First(u => u.SourceCode == moduleName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user