test added, permission fixed

This commit is contained in:
spencerrlongg
2024-07-23 14:29:17 -05:00
parent b9fdb5880a
commit e8864ffb01
2 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class UpdateAssetRequest extends ImageUploadRequest
*/
public function authorize()
{
return Gate::allows('update', new Asset);
return Gate::allows('update', $this->asset);
}
/**