We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a8e5d commit 265ee3bCopy full SHA for 265ee3b
1 file changed
lib/Service/Aggregation/AggregationRunner.php
@@ -560,8 +560,10 @@ private function tryNativeAggregation(
560
// native fast path bypasses MagicMapper entirely, so without this
561
// filter any authed caller could compute aggregates over rows in
562
// other tenants. Active org of `null` ⇒ no rows (fail-closed).
563
+ // Column is `_organisation` — magic tables prefix metadata cols
564
+ // with `_` (see MagicMapper::METADATA_PREFIX).
565
$activeOrg = $this->organisationService->getActiveOrganisation();
- $whereParts[] = '"organisation" = ?';
566
+ $whereParts[] = '"_organisation" = ?';
567
$bindings[] = $activeOrg?->getUuid() ?? '__no_active_org__';
568
569
foreach ($filter as $f => $v) {
0 commit comments