Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxatron committed Dec 9, 2021
1 parent 86afe6c commit 918e7c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/AssetModelsController.php
Expand Up @@ -269,6 +269,7 @@ public function show($modelId = null)
*/
public function getClone($modelId = null)
{
$this->authorize('view', AssetModel::class);
// Check if the model exists
if (is_null($model_to_clone = AssetModel::find($modelId))) {
return redirect()->route('models.index')->with('error', trans('admin/models/message.does_not_exist'));
Expand Down

0 comments on commit 918e7c8

Please sign in to comment.