]> _ Git - fluidbook-toolbox.git/commitdiff
fix #3711
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jun 2020 16:04:36 +0000 (18:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jun 2020 16:04:36 +0000 (18:04 +0200)
resources/views/errors/layout.blade.php
routes/backpack/backupmanager.php

index 46fb6809ac704895bc8f8641026cccfd2d63a47a..6fb192b229e7afab53521e9b17903b45283865ce 100644 (file)
@@ -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 @@
     </div>
   </div>
 </div>
-@endsection
\ No newline at end of file
+@endsection
index af8e1c3076997a11915d25f108d2e7e3c05d4f74..8738c15dcb1a5dedea515d72eeb2685d8ffcfc56 100644 (file)
@@ -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');