Commit a60d6dd0 authored by Benni Mack's avatar Benni Mack Committed by Thomas Löffler
Browse files

[BUGFIX] Use current user if no owner was specified

Fixes: #459
parent 75060807
Pipeline #9262 passed with stages
in 10 minutes and 20 seconds
......@@ -250,7 +250,7 @@ class tx_ter_api
$user,
$registerExtensionKeyData->title ?? '',
$registerExtensionKeyData->description ?? '',
$registerExtensionKeyData->ownerUsername ?? ''
$registerExtensionKeyData->ownerUsername ?? $user->getUsername()
);
$resultCode = ResultCodes::RESULT_EXTENSIONKEYSUCCESSFULLYREGISTERED;
} catch (\T3o\Ter\Exception\InvalidExtensionKeyFormatException $e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment