Skip to content

Commit

Permalink
Update AssetModelsController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxatron committed Dec 9, 2021
1 parent 918e7c8 commit 1699c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AssetModelsController.php
Expand Up @@ -269,7 +269,7 @@ public function show($modelId = null)
*/
public function getClone($modelId = null)
{
$this->authorize('view', AssetModel::class);
$this->authorize('create', 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 1699c09

Please sign in to comment.