Skip to content

Commit 5e6281b

Browse files
committed
Fixed test
1 parent 20ef800 commit 5e6281b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/MediaController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __invoke(Request $request, string $type, string $uuid)
1919
{
2020
abort_if(! MediaAccess::acceptable($type), 422, 'Invalid request type of '.$type);
2121

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

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

0 commit comments

Comments
 (0)