#3: Enforce the ability to upload photos when moving albums in the controller

This commit is contained in:
Andy Heathershaw 2017-04-16 09:51:53 +01:00
parent a1bcb5b6cf
commit 302340b679
1 changed files with 1 additions and 6 deletions

View File

@ -450,12 +450,7 @@ class PhotoController extends Controller
continue;
}
$newAlbum = Album::where('id', $newAlbumId)->first();
if (is_null($newAlbum))
{
App::abort(404);
}
$newAlbum = $this->loadAlbum($newAlbumId, 'upload-photos');
$photoService->changeAlbum($newAlbum);
$changed = true;
}