Merge pull request #10758 from inietov/fixes/badmethodcallexception_undefined_method_Asset.unaccepted_develop

Fixes BadMethodCallException Call to undefined method App\Models\Asset::unaccepted() for master [ch-17636]
This commit is contained in:
snipe 2022-06-29 04:34:51 -07:00 committed by GitHub
commit b04cf20735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1148,18 +1148,4 @@ class ReportsController extends Controller
$this->getModelsInCategoriesThatRequireAcceptance($this->getCategoriesThatRequireAcceptance())
);
}
/**
* getAssetsNotAcceptedYet
*
* @return array
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
protected function getAssetsNotAcceptedYet()
{
$this->authorize('reports.view');
return Asset::unaccepted();
}
}