#3: Enforce the ability to upload photos when moving albums in the controller
This commit is contained in:
parent
a1bcb5b6cf
commit
302340b679
@ -450,12 +450,7 @@ class PhotoController extends Controller
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$newAlbum = Album::where('id', $newAlbumId)->first();
|
$newAlbum = $this->loadAlbum($newAlbumId, 'upload-photos');
|
||||||
if (is_null($newAlbum))
|
|
||||||
{
|
|
||||||
App::abort(404);
|
|
||||||
}
|
|
||||||
|
|
||||||
$photoService->changeAlbum($newAlbum);
|
$photoService->changeAlbum($newAlbum);
|
||||||
$changed = true;
|
$changed = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user