Skip to content

Commit

Permalink
fix: video policy
Browse files Browse the repository at this point in the history
  • Loading branch information
abourtnik committed Feb 20, 2024
1 parent 8bb0e39 commit ad6613f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,12 @@
->name('unpin')
->can('unpin', 'video')
->missing(fn(Request $request) => abort(404, 'Video not found'));
Route::get('{video}/create', 'create')->name('create');
Route::post('{video}/store', 'store')->name('store');
Route::get('{video}/create', 'create')
->name('create')
->can('update', 'video');
Route::post('{video}/store', 'store')
->name('store')
->can('update', 'video');
});

Route::resource('videos', VideoUserController::class)->except([
Expand Down

0 comments on commit ad6613f

Please sign in to comment.