| @@ -27,10 +27,12 @@ | ||
| 27 | 27 | |
| 28 | 28 | $this->appQuery = $hooks->wrap( $appQuery ); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - public function out() | |
| 31 | + public function render() | |
| 32 | 32 | { |
| 33 | + $user = $this->auth->getCurrentUser(); | |
| 34 | + | |
| 33 | 35 | $out = array(); |
| 34 | 36 | |
| 35 | 37 | $roleAdmin = $this->self->renderAdmin(); |
| 36 | 38 | if( $roleAdmin ) |
| @@ -50,16 +52,8 @@ | ||
| 50 | 52 | if( $roleEmployee ){ |
| 51 | 53 | $out[] = $roleEmployee; |
| 52 | 54 | } |
| 53 | 55 | |
| 54 | - return $out; | |
| 55 | - } | |
| 56 | - | |
| 57 | - public function render() | |
| 58 | - { | |
| 59 | - $user = $this->auth->getCurrentUser(); | |
| 60 | - | |
| 61 | - $out = $this->self->out(); | |
| 62 | 56 | if( ! $out ){ |
| 63 | 57 | $out[] = '__You have no roles at the moment__'; |
| 64 | 58 | } |
| 65 | 59 | |