You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"(select \"RoleRegistry\".\"Guid\" from \"RoleRegistry\",\"UserRegistry\" where \"RoleRegistry\".\"Guid\" = \"UserRegistry\".\"RoleRegistryGuid\" and (\"RoleRegistry\".\"Deleted\" = 0 or \"RoleRegistry\".\"Deleted\" IS NULL) and \"UserRegistry\".\"Name\" = (@"+positionUser+")) \"RoleRegistry\""+
133
+
"\"CaseWorkflowStatus\",\"UserInTenant\""+
135
134
" where \"EntityAnalysisModel\".\"Id\" = \"CaseWorkflow\".\"EntityAnalysisModelId\""+
136
135
" and \"EntityAnalysisModel\".\"TenantRegistryId\" = \"TenantRegistry\".\"Id\""+
137
136
" and \"UserInTenant\".\"TenantRegistryId\" = \"TenantRegistry\".\"Id\""+
@@ -140,8 +139,22 @@ public static async Task<SessionCaseSearchCompiledSql> CompileAsync(DbContext db
140
139
" and (\"CaseWorkflowStatus\".\"Deleted\" = 0"+
141
140
" or \"CaseWorkflowStatus\".\"Deleted\" IS null) ) and "+filterRule.Sql+
142
141
" and (\"CaseWorkflow\".\"Guid\" = uuid(@"+positionCaseWorkflowGuid+") "+
143
-
" and (\"CaseWorkflowRole\".\"CaseWorkflowGuid\" = \"CaseWorkflow\".\"Guid\" and \"CaseWorkflowRole\".\"RoleRegistryGuid\" = \"RoleRegistry\".\"Guid\" and (\"CaseWorkflowRole\".\"Deleted\" = 0 or \"CaseWorkflowRole\".\"Deleted\" IS NULL)) "+
144
-
" and (\"CaseWorkflowStatusRole\".\"CaseWorkflowStatusGuid\" = \"CaseWorkflowStatus\".\"Guid\" and \"CaseWorkflowStatusRole\".\"RoleRegistryGuid\" = \"RoleRegistry\".\"Guid\" and (\"CaseWorkflowStatusRole\".\"Deleted\" = 0 or \"CaseWorkflowStatusRole\".\"Deleted\" IS NULL)) "+
142
+
" and exists (select 1 from \"CaseWorkflowRole\",\"RoleRegistry\",\"UserRegistry\""+
143
+
" where \"CaseWorkflowRole\".\"CaseWorkflowGuid\" = \"CaseWorkflow\".\"Guid\""+
144
+
" and \"CaseWorkflowRole\".\"RoleRegistryGuid\" = \"RoleRegistry\".\"Guid\""+
145
+
" and (\"CaseWorkflowRole\".\"Deleted\" = 0 or \"CaseWorkflowRole\".\"Deleted\" IS NULL)"+
146
+
" and \"RoleRegistry\".\"Guid\" = \"UserRegistry\".\"RoleRegistryGuid\""+
147
+
" and \"RoleRegistry\".\"TenantRegistryId\" = \"TenantRegistry\".\"Id\""+
148
+
" and (\"RoleRegistry\".\"Deleted\" = 0 or \"RoleRegistry\".\"Deleted\" IS NULL)"+
149
+
" and \"UserRegistry\".\"Name\" = (@"+positionUser+")) "+
150
+
" and exists (select 1 from \"CaseWorkflowStatusRole\",\"RoleRegistry\",\"UserRegistry\""+
151
+
" where \"CaseWorkflowStatusRole\".\"CaseWorkflowStatusGuid\" = \"CaseWorkflowStatus\".\"Guid\""+
152
+
" and \"CaseWorkflowStatusRole\".\"RoleRegistryGuid\" = \"RoleRegistry\".\"Guid\""+
153
+
" and (\"CaseWorkflowStatusRole\".\"Deleted\" = 0 or \"CaseWorkflowStatusRole\".\"Deleted\" IS NULL)"+
154
+
" and \"RoleRegistry\".\"Guid\" = \"UserRegistry\".\"RoleRegistryGuid\""+
155
+
" and \"RoleRegistry\".\"TenantRegistryId\" = \"TenantRegistry\".\"Id\""+
156
+
" and (\"RoleRegistry\".\"Deleted\" = 0 or \"RoleRegistry\".\"Deleted\" IS NULL)"+
157
+
" and \"UserRegistry\".\"Name\" = (@"+positionUser+")) "+
145
158
" and (\"CaseWorkflow\".\"Deleted\" = 0 or \"CaseWorkflow\".\"Deleted\" is null))"+
146
159
" and \"UserInTenant\".\"User\" = (@"+positionUser+")";
0 commit comments