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

View File

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