mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 06:26:16 +00:00
fix demo
This commit is contained in:
@ -85,6 +85,10 @@ private function export(string $zipFileName): string
|
||||
#[Post('/import', name: 'vito-settings.import')]
|
||||
public function import(Request $request): RedirectResponse
|
||||
{
|
||||
if (config('app.demo')) {
|
||||
return back()->with('error', 'Import is disabled in demo mode.');
|
||||
}
|
||||
|
||||
// set session driver to file
|
||||
config(['session.driver' => 'file']);
|
||||
|
||||
|
Reference in New Issue
Block a user