From: Vincent Vanwaelscappel Date: Tue, 16 Jun 2020 16:04:36 +0000 (+0200) Subject: fix #3711 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9ac23a721c9fdc1c020037f17140f1f75d32b9fa;p=fluidbook-toolbox.git fix #3711 --- diff --git a/resources/views/errors/layout.blade.php b/resources/views/errors/layout.blade.php index 46fb6809a..6fb192b22 100644 --- a/resources/views/errors/layout.blade.php +++ b/resources/views/errors/layout.blade.php @@ -1,4 +1,4 @@ -@extends(backpack_user() && (starts_with(\Request::path(), config('backpack.base.route_prefix'))) ? 'backpack::layouts.top_left' : 'backpack::layouts.plain') +@extends(backpack_user() && (Str::startsWith(\Request::path(), config('backpack.base.route_prefix'))) ? 'backpack::layouts.top_left' : 'backpack::layouts.plain') {{-- show error using sidebar layout if looged in AND on an admin page; otherwise use a blank page --}} @php @@ -54,4 +54,4 @@ -@endsection \ No newline at end of file +@endsection diff --git a/routes/backpack/backupmanager.php b/routes/backpack/backupmanager.php index af8e1c307..8738c15dc 100644 --- a/routes/backpack/backupmanager.php +++ b/routes/backpack/backupmanager.php @@ -13,7 +13,7 @@ Route::group([ 'namespace' => 'Backpack\BackupManager\app\Http\Controllers', 'prefix' => config('backpack.base.route_prefix', 'admin'), - 'middleware' => ['web', 'admin','can:maintenance'], + 'middleware' => ['web', 'admin','can:toolbox:maintenance'], ], function () { Route::get('backup', 'BackupController@index'); Route::put('backup/create', 'BackupController@create');