xref: /dokuwiki/inc/Menu/Item/Admin.php (revision 8c51da59a9481debdfd66270530c691b0411cf9c)
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