#3: Fixed issues where the album list didn't always show in the menu - and when it did, it was only applicable to anonymous users

This commit is contained in:
Andy Heathershaw 2017-04-15 10:59:18 +01:00
parent aa8089f75c
commit 1312808d75
2 changed files with 3 additions and 4 deletions

View File

@ -18,8 +18,7 @@ class Kernel extends HttpKernel
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
AppInstallation::class,
GlobalConfiguration::class
AppInstallation::class
];
/**
@ -35,6 +34,7 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
GlobalConfiguration::class
],
'api' => [

View File

@ -59,8 +59,7 @@ class GlobalConfiguration
private function addAlbumsToView()
{
//$albums = DbHelper::getAlbumsForCurrentUser_NonPaged()->get();
$albums = Album::all();
$albums = DbHelper::getAlbumsForCurrentUser_NonPaged()->get();
View::share('albums', $albums);
}