Skip to content

Commit 9e4158d

Browse files
committed
add auth
1 parent c9113a3 commit 9e4158d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controllers/CP/Assets/AssetsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function show($asset)
4040

4141
abort_if(! $asset, 404);
4242

43-
// TODO: Auth
43+
$this->authorize('view', $asset);
4444

4545
return new AssetResource($asset);
4646
}
@@ -133,7 +133,7 @@ public function download($asset)
133133

134134
abort_if(! $asset, 404);
135135

136-
// TODO: Auth
136+
$this->authorize('view', $asset);
137137

138138
return $asset->download();
139139
}

0 commit comments

Comments
 (0)