Files
hephaestus ff585da16f NEW: centralized PowerDNS management for foreign domains (DNS Manager)
NEW: add --raw support on dnf platforms (system/yum)
CHG: convert application XML to Yaml
CHG: preserve quotas on disablement (Validators\Diskquota)
2020-11-29 15:03:56 -05:00

23 lines
436 B
PHP

<?php declare(strict_types=1);
namespace apps\dns;
use Opcenter\Dns\Providers\Powerdns\Module;
class Powerbroker extends Module
{
public function getExportedFunctions(): array
{
if (!($this->permission_level & PRIVILEGE_ADMIN)) {
return parent::getExportedFunctions();
}
return ['*' => PRIVILEGE_ADMIN] + parent::getExportedFunctions();
}
public function __sleep()
{
return array_keys(get_object_vars($this));
}
}