auth for table conf page
This commit is contained in:
@@ -72,7 +72,9 @@ class TableController extends Controller
|
||||
$tableModel = $user->tables()->where('name', $table)->first();
|
||||
if ($tableModel === null) abort(404, "No such table.");
|
||||
|
||||
return view('table.edit', [
|
||||
$this->authorize('edit', $tableModel);
|
||||
|
||||
return view('table.conf', [
|
||||
'table' => $tableModel,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user