xref: /dokuwiki/inc/Menu/Item/Admin.php (revision b3680c4f047962121d05cbec69bf0fbc8d91f664)
1<?php
2
3namespace dokuwiki\Menu\Item;
4
5class Admin extends AbstractItem {
6
7    protected $svg = DOKU_INC . 'lib/images/menu/settings.svg';
8
9    /** @inheritdoc */
10    public function __construct() {
11        global $INFO;
12        parent::__construct();
13
14        if(!$INFO['ismanager']) {
15            throw new \RuntimeException("admin is for managers only");
16        }
17    }
18
19}
20