test added, permission fixed
This commit is contained in:
@@ -15,7 +15,7 @@ class UpdateAssetRequest extends ImageUploadRequest
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return Gate::allows('update', new Asset);
|
||||
return Gate::allows('update', $this->asset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user