Skip to content

Commit

Permalink
Merge pull request #9 from araujorm/fix-not-working-recent-version
Browse files Browse the repository at this point in the history
Fix module not showing in recent icingaweb2
  • Loading branch information
nunofernandes authored Nov 25, 2022
2 parents 934abec + eca25f6 commit 7b58dfd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
use Icinga\Authentication\Auth;

$auth = Auth::getInstance();

$section = $this->menuSection(N_('CA'));

if ($auth->hasPermission('ca/overview')){
$this->menuSection('System')
->add('Certificate Authority')
->setUrl('ca');
$section->add(N_('Certificate Authority'), ['url' => 'ca']);
}

$this->providePermission(
Expand Down

0 comments on commit 7b58dfd

Please sign in to comment.