We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0edd41 commit 14b6b94Copy full SHA for 14b6b94
1 file changed
Sources/DataTransferObjects/Query/CustomQuery+CompileDown.swift
@@ -242,6 +242,10 @@ extension CustomQuery {
242
// Apply filters according to the basefilters property
243
switch baseFilters {
244
case .thisOrganization:
245
+ if let namespace, query.dataSource?.name == namespace {
246
+ return query
247
+ }
248
+
249
guard let organizationAppIDs = organizationAppIDs else { throw QueryGenerationError.keyMissing(reason: "Missing organization app IDs") }
250
query.filter = try query.filter && appIDFilter(for: organizationAppIDs) && testModeFilter(for: query)
251
return query
0 commit comments