Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim committed Oct 25, 2022
1 parent 20ef800 commit 5e6281b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/MediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __invoke(Request $request, string $type, string $uuid)
{
abort_if(! MediaAccess::acceptable($type), 422, 'Invalid request type of '.$type);

$media = config('media-library.media_model')::whereUuid($uuid)->firstOrFail();
$media = config('laravel-media-secure.model')::whereUuid($uuid)->firstOrFail();

abort_if($request->user()->cannot($type, $media), 403, 'Unauthorized Access.');

Expand Down

0 comments on commit 5e6281b

Please sign in to comment.