PluginProbe
ShiftController Employee Shift Scheduling / 4.9.66
ShiftController Employee Shift Scheduling v4.9.66
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | sh4/users/html/user/view/profile/roles.php +3 -9 4.9.964.9.66 View file →
@@ -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