Skip to content

Commit

Permalink
Merge pull request #132 from mapbender/work/fix-user-filter
Browse files Browse the repository at this point in the history
Fix `trackUser` and `filterUser` in digitizer config
  • Loading branch information
Phocacius authored Oct 9, 2024
2 parents ca0b063 + e120ec0 commit 1733281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function getFilterValue()
if ($token instanceof NullToken) {
return null;
} else {
return $token->getUsername();
return $token->getUserIdentifier();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ protected function addQueryFilters(QueryBuilder $queryBuilder, $includeDefaultFi
$queryBuilder->andWhere($params['where']);
}
if ($setUserParam) {
$queryBuilder->setParameter('userName', $this->tokenStorage->getToken()->getUsername());
$queryBuilder->setParameter('userName', $this->tokenStorage->getToken()->getUserIdentifier());
}
}

Expand Down

0 comments on commit 1733281

Please sign in to comment.