fix: Only map owner for user mapping

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-08-11 18:47:38 +02:00
parent 5b81f4b614
commit 3a5d5bd449
3 changed files with 7 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ class DeckJsonService extends ABoardImportService {
public function mapMember($uid): ?string {
$ownerMap = $this->mapOwner($uid);
if ($ownerMap !== $uid) {
if ($uid === $this->getImportService()->getData()->owner && $ownerMap !== $this->getImportService()->getData()->owner) {
return $ownerMap;
}