auth for table conf page

This commit is contained in:
2018-07-29 17:32:45 +02:00
parent c23009b306
commit c1bc5a6677
4 changed files with 30 additions and 2 deletions
+3 -1
View File
@@ -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,
]);
}