1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

ZIP Exports: Added new import permission

Also updated new route/view to new non-book-specific flow.
Also fixed down migration of old export permissions migration.
This commit is contained in:
Dan Brown
2024-10-29 12:11:51 +00:00
parent d1f69feb4a
commit 4051d5b803
9 changed files with 137 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace BookStack\Exports\Controllers;
use BookStack\Http\Controller;
use Illuminate\Http\Request;
class ImportController extends Controller
{
public function __construct()
{
$this->middleware('can:content-import');
}
public function start(Request $request)
{
return view('exports.import');
}
public function upload(Request $request)
{
// TODO
}
}