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