Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 10366 Rev 11083
Línea 80... Línea 80...
80
      
80
      
81
 
81
 
82
        $currentUserPlugin = $this->plugin('currentUserPlugin');
82
        $currentUserPlugin = $this->plugin('currentUserPlugin');
83
        $currentUser = $currentUserPlugin->getUser();
83
        $currentUser = $currentUserPlugin->getUser();
Línea 84... Línea 84...
84
        $currentCompany = $currentUserPlugin->getCompany();
84
        $currentCompany = $currentUserPlugin->getCompany();
85
        $group_uuid= $this->params()->fromRoute('group_uuid');
85
        $group_uuid= $this->params()->fromRoute('group_id');
86
        
86
        
Línea 172... Línea 172...
172
                    }
172
                    }
173
                    $item = [
173
                    $item = [
174
                        'first_name' => $record->first_name,
174
                        'first_name' => $record->first_name,
175
                        'last_name' => $record->last_name,
175
                        'last_name' => $record->last_name,
176
                        'image'=>  $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $record->uuid, 'filename' => $record->image]),
176
                        'image'=>  $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $record->uuid, 'filename' => $record->image]),
177
                        'link_delete' => $allowDelete ? $this->url()->fromRoute('high-performance-teams/groups/view/members/delete', ['group_uuid' => $highPerformanceTeamsGroups->uuid,'user_uuid'=>$record->uuid]) : '',
177
                        'link_delete' => $allowDelete ? $this->url()->fromRoute('high-performance-teams/groups/view/members/delete', ['group_id' => $highPerformanceTeamsGroups->uuid,'user_id'=>$record->uuid]) : '',
178
                        'link_edit' => $allowEdit ? $this->url()->fromRoute('high-performance-teams/groups/view/members/edit', ['group_uuid' => $highPerformanceTeamsGroups->uuid,'user_uuid'=>$record->uuid]) : '',
178
                        'link_edit' => $allowEdit ? $this->url()->fromRoute('high-performance-teams/groups/view/members/edit', ['group_id' => $highPerformanceTeamsGroups->uuid,'user_id'=>$record->uuid]) : '',
Línea 179... Línea 179...
179
 
179
 
Línea 180... Línea 180...
180
 
180
 
Línea 250... Línea 250...
250
                    $item = [
250
                    $item = [
251
                        'first_name' => $record->first_name,
251
                        'first_name' => $record->first_name,
252
                        'last_name' => $record->last_name,
252
                        'last_name' => $record->last_name,
253
                        'image'=>  $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $record->uuid, 'filename' => $record->image]),
253
                        'image'=>  $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $record->uuid, 'filename' => $record->image]),
254
                        'email'=> $record->email,
254
                        'email'=> $record->email,
255
                        'link_invite'=> $allowInvite ? $this->url()->fromRoute('high-performance-teams/groups/view/members/invite', ['group_uuid' => $highPerformanceTeamsGroups->uuid,'user_uuid'=>$record->uuid]) : '',
255
                        'link_invite'=> $allowInvite ? $this->url()->fromRoute('high-performance-teams/groups/view/members/invite', ['group_id' => $highPerformanceTeamsGroups->uuid,'user_id'=>$record->uuid]) : '',
Línea 256... Línea 256...
256
 
256
 
Línea 257... Línea 257...
257
                    ];
257
                    ];
Línea 518... Línea 518...
518
        $currentUserPlugin = $this->plugin('currentUserPlugin');
518
        $currentUserPlugin = $this->plugin('currentUserPlugin');
519
        $currentCompany = $currentUserPlugin->getCompany();
519
        $currentCompany = $currentUserPlugin->getCompany();
520
        $currentUser = $currentUserPlugin->getUser();
520
        $currentUser = $currentUserPlugin->getUser();
Línea 521... Línea 521...
521
 
521
 
522
        $request = $this->getRequest();
522
        $request = $this->getRequest();
523
        $group_uuid = $this->params()->fromRoute('group_uuid');
523
        $group_uuid = $this->params()->fromRoute('group_id');
524
        $user_uuid = $this->params()->fromRoute('user_uuid');
524
        $user_uuid = $this->params()->fromRoute('user_id');
525
        if (!$group_uuid) {
525
        if (!$group_uuid) {
526
            $data = [
526
            $data = [
527
                'success' => false,
527
                'success' => false,
528
                'data' => 'ERROR_INVALID_PARAMETER'
528
                'data' => 'ERROR_INVALID_PARAMETER'