diff options
Diffstat (limited to 'library/Director/Dashboard/Dashlet/ChoicesDashlet.php')
-rw-r--r-- | library/Director/Dashboard/Dashlet/ChoicesDashlet.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/Director/Dashboard/Dashlet/ChoicesDashlet.php b/library/Director/Dashboard/Dashlet/ChoicesDashlet.php index efdbba5..105ebb9 100644 --- a/library/Director/Dashboard/Dashlet/ChoicesDashlet.php +++ b/library/Director/Dashboard/Dashlet/ChoicesDashlet.php @@ -2,6 +2,8 @@ namespace Icinga\Module\Director\Dashboard\Dashlet; +use Icinga\Module\Director\Auth\Permission; + abstract class ChoicesDashlet extends Dashlet { protected $icon = 'flapping'; @@ -36,6 +38,6 @@ abstract class ChoicesDashlet extends Dashlet public function listRequiredPermissions() { - return array('director/admin'); + return [Permission::ADMIN]; } } |