@@ 23-30 (lines=8) @@ | ||
20 | $this->addWellKnownJS(JS_METISMENU, false); |
|
21 | } |
|
22 | ||
23 | protected function userIsAdmin($adminGroup) |
|
24 | { |
|
25 | if($this->user === false || $this->user === null) |
|
26 | { |
|
27 | return false; |
|
28 | } |
|
29 | return $this->user->isInGroupNamed($adminGroup); |
|
30 | } |
|
31 | ||
32 | protected function addAllLinks() |
|
33 | { |
@@ 14-21 (lines=8) @@ | ||
11 | $this->setTemplateName('admin.html'); |
|
12 | } |
|
13 | ||
14 | protected function userIsAdmin($adminGroup) |
|
15 | { |
|
16 | if($this->user === false || $this->user === null) |
|
17 | { |
|
18 | return false; |
|
19 | } |
|
20 | return $this->user->isInGroupNamed($adminGroup); |
|
21 | } |
|
22 | ||
23 | public function isAdmin() |
|
24 | { |