Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 9298 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 9298 Rev 9318
Línea 104... Línea 104...
104
                    }
104
                    }
Línea 105... Línea 105...
105
                    
105
                    
106
                }
106
                }
Línea -... Línea 107...
-
 
107
            }
-
 
108
 
Línea -... Línea 109...
-
 
109
            $highPerformanceTeamsGroupsMapper = HighPerformanceTeamsGroupsMapper::getInstance($this->adapter);
-
 
110
            $highPerformanceTeamsGroups = $highPerformanceTeamsGroupsMapper->fetchOneByUuid($group_uuid);
-
 
111
            
-
 
112
            if (!$highPerformanceTeamsGroups) {
-
 
113
                $data = [
-
 
114
                    'success' => false,
-
 
115
                    'data' => 'ERROR_RECORD_NOT_FOUND'
-
 
116
                ];
-
 
117
 
-
 
118
                return new JsonModel($data);
-
 
119
            }
-
 
120
           
-
 
121
            if($highPerformanceTeamsGroups->status != HighPerformanceTeamsGroups::STATUS_ACTIVE) {
-
 
122
 
-
 
123
                return new JsonModel([
-
 
124
                    'success' => false,
-
 
125
                    'data' => 'ERROR_UNAUTHORIZED'
Línea 107... Línea 126...
107
            }
126
                ]);
108
 
127
 
109
            
128
            } 
Línea 110... Línea -...
110
            
-
 
111
            if($isJson) {
-
 
112
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
-
 
113
                $allowView = $acl->isAllowed($currentUser->usertype_id,'high-performance-teams/groups/view/calendar');
-
 
114
                
-
 
115
                $highPerformanceTeamsGroupsMapper = HighPerformanceTeamsGroupsMapper::getInstance($this->adapter);
-
 
116
                $highPerformanceTeamsGroups = $highPerformanceTeamsGroupsMapper->fetchOneByUuid($group_uuid);
-
 
117
                
-
 
118
                if (!$highPerformanceTeamsGroups) {
-
 
119
                    $data = [
-
 
120
                        'success' => false,
-
 
Línea 121... Línea -...
121
                        'data' => 'ERROR_RECORD_NOT_FOUND'
-
 
122
                    ];
-
 
123
 
-
 
124
                    return new JsonModel($data);
-
 
125
                }
-
 
126
               
-
 
127
                if($highPerformanceTeamsGroups->status != HighPerformanceTeamsGroups::STATUS_ACTIVE) {
-
 
128
 
-
 
129
                    return new JsonModel([
129
            
130
                        'success' => false,
130
            if($isJson) {
131
                        'data' => 'ERROR_UNAUTHORIZED'
131
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
132
                    ]);
132
                $allowView = $acl->isAllowed($currentUser->usertype_id,'high-performance-teams/groups/view/calendar');
Línea 174... Línea 174...
174
                    
174
                    
175
                $this->layout()->setTemplate('layout/layout-backend');
175
                $this->layout()->setTemplate('layout/layout-backend');
176
                $viewModel = new ViewModel();
176
                $viewModel = new ViewModel();
177
                $viewModel->setTemplate('leaders-linked/high-performance-teams-groups-view-calendar/index.phtml');
177
                $viewModel->setTemplate('leaders-linked/high-performance-teams-groups-view-calendar/index.phtml');
178
                $viewModel->setVariables([
178
                $viewModel->setVariables([
-
 
179
                    'group_uuid'  =>  $group_uuid,
-
 
180
                    'group_title'=>$highPerformanceTeamsGroups->title,
179
                    'group_uuid'  =>  $group_uuid
181
                    'group_description'=>$highPerformanceTeamsGroups->description,
180
                ]);
182
                ]);