We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3981555 commit 0f171eaCopy full SHA for 0f171ea
1 file changed
Sources/DataTransferObjects/Query/CustomQuery+CompileDown.swift
@@ -248,6 +248,7 @@ extension CustomQuery {
248
249
case .thisApp:
250
guard let appID = query.appID else { throw QueryGenerationError.keyMissing(reason: "Missing key 'appID'") }
251
+ guard isSuperOrg || (organizationAppIDs ?? []).contains(appID) else { throw QueryGenerationError.notAllowed(reason: "AppID not in organization") }
252
query.filter = try query.filter && appIDFilter(for: [appID]) && testModeFilter(for: query)
253
return query
254
0 commit comments