<?php
namespace ReallySimplePlugins\RSS\Core\Features\Vulnerability;
use ReallySimplePlugins\RSS\Core\Features\AbstractLoader;
use ReallySimplePlugins\RSS\Core\Managers\FeatureManager;
use ReallySimplePlugins\RSS\Core\Traits\HasAllowlistControl;
/**
* Determines whether the Vulnerabilities feature should be loaded.
*
* @see FeatureManager
*/
class VulnerabilityLoader extends AbstractLoader
{
use HasAllowlistControl;
/**
* @inheritDoc
*/
public function isEnabled(): bool
{
return rsssl_get_option('enable_vulnerability_scanner', false);
}
/**
* @inheritDoc
*/
public function inScope(): bool
{
return $this->adminAccessAllowed();
}
}