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:
24
app/Exports/Controllers/ImportController.php
Normal file
24
app/Exports/Controllers/ImportController.php
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user