diff options
Diffstat (limited to 'library/Director/Dashboard/Dashlet/ZoneObjectDashlet.php')
-rw-r--r-- | library/Director/Dashboard/Dashlet/ZoneObjectDashlet.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/Director/Dashboard/Dashlet/ZoneObjectDashlet.php b/library/Director/Dashboard/Dashlet/ZoneObjectDashlet.php index ee789f2..f2ff8c8 100644 --- a/library/Director/Dashboard/Dashlet/ZoneObjectDashlet.php +++ b/library/Director/Dashboard/Dashlet/ZoneObjectDashlet.php @@ -2,11 +2,13 @@ namespace Icinga\Module\Director\Dashboard\Dashlet; +use Icinga\Module\Director\Auth\Permission; + class ZoneObjectDashlet extends Dashlet { protected $icon = 'globe'; - protected $requiredStats = array('zone'); + protected $requiredStats = ['zone']; public function getTitle() { @@ -20,6 +22,6 @@ class ZoneObjectDashlet extends Dashlet public function listRequiredPermissions() { - return array('director/admin'); + return [Permission::ADMIN]; } } |