Issue 11470: Check for removed account

This commit is contained in:
Michael 2022-05-28 16:21:41 +00:00
commit 4ef7f42257
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ function photos_init(App $a) {
if (DI::args()->getArgc() > 1) {
$owner = User::getOwnerDataByNick(DI::args()->getArgv()[1]);
if (!$owner) {
if (empty($owner) || $owner['account_removed']) {
throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
}