Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 7815 | Rev 16766 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7815 Rev 15351
Línea 70... Línea 70...
70
    public function indexAction()
70
    public function indexAction()
71
    {
71
    {
72
        $currentUserPlugin = $this->plugin('currentUserPlugin');
72
        $currentUserPlugin = $this->plugin('currentUserPlugin');
73
        $currentUser = $currentUserPlugin->getUser();
73
        $currentUser = $currentUserPlugin->getUser();
74
        $currentCompany = $currentUserPlugin->getCompany();
74
        $currentCompany = $currentUserPlugin->getCompany();
-
 
75
        
-
 
76
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
77
        $network = $currentNetworkPlugin->getNetwork();
-
 
78
        
Línea 75... Línea 79...
75
 
79
 
76
 
80
 
77
        $request = $this->getRequest();
81
        $request = $this->getRequest();
Línea 95... Línea 99...
95
            if($isJson) {
99
            if($isJson) {
96
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
100
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
97
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'followers/delete');
101
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'followers/delete');
Línea 98... Línea -...
98
 
-
 
99
 
-
 
100
                $sandbox = $this->config['leaderslinked.runmode.sandbox'];
-
 
101
                if($sandbox) {
-
 
102
                    $user_profile_url = $this->config['leaderslinked.frontend.sandbox_user_profile'];
-
 
103
                } else {
-
 
Línea 104... Línea 102...
104
                    $user_profile_url = $this->config['leaderslinked.frontend.production_user_profile'];
102
 
105
                }
103
 
Línea 151... Línea 149...
151
                    $item = [
149
                    $item = [
152
                        'first_name' => $record['first_name'] ,
150
                        'first_name' => $record['first_name'] ,
153
                        'last_name' => $record['last_name'],
151
                        'last_name' => $record['last_name'],
154
                        'email' => $record['email'],
152
                        'email' => $record['email'],
155
                        'actions' => [
153
                        'actions' => [
156
                            'link_profile' => $user_profile_url,
154
                            'link_profile' =>  'https://'. $network->main_hostname . '/profile/view/' . $record['uuid'],
157
                            'link_delete' => $allowDelete ? $this->url()->fromRoute('followers/delete',['id' => $record['uuid'] ]) : '',
155
                            'link_delete' => $allowDelete ? $this->url()->fromRoute('followers/delete',['id' => $record['uuid'] ]) : '',
158
                        ]
156
                        ]
159
                    ];
157
                    ];
Línea 160... Línea 158...
160
 
158