Auth: Explicitly select flatname from customvar_flat

The `*` was just a lazy fix. Should be bullet proof now.
(fingers crossed)
This commit is contained in:
Johannes Meyer 2022-05-19 12:41:33 +02:00
parent 068377e4c6
commit 105842658e

View file

@ -203,7 +203,12 @@ trait Auth
$columns = $query->getColumns();
if (empty($columns)) {
$columns = [$flatvaluePath, '*'];
$columns = [
$customVarRelationName
? $resolver->qualifyColumn('flatname', $customVarRelationName)
: 'flatname',
$flatvaluePath
];
}
$flatvalue = null;