name account media folders based on id and login name

This commit is contained in:
Dennis Eichhorn 2020-09-12 22:15:10 +02:00
parent 9007ed29af
commit bd1c9fce7b

View File

@ -737,7 +737,7 @@ final class ApiController extends Controller
$this->createProfileForAccount($account, $request);
$collection = new Collection();
$collection->setName((string) $account->getId());
$collection->setName(((string) $account->getId()) . ' ' . $account->getName());
$collection->setVirtualPath('/Accounts');
$collection->setPath('/Modules/Media/Files/Accounts/' . ((string) $account->getId()));
$collection->setCreatedBy(new NullAccount($request->getHeader()->getAccount()));