#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:
parent
aa8089f75c
commit
1312808d75
@ -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' => [
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user