Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7300 Rev 7329
Línea 1835... Línea 1835...
1835
                
1835
                
Línea 1836... Línea 1836...
1836
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
1836
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
1837
                
1837
                
-
 
1838
                $link_admin         = $currentUser->usertype_id == UserType::ADMIN ? 1 : 0;
-
 
1839
                $link_impersonate   = $currentUser->is_super_user == User::IS_SUPER_USER_YES ? 1 : 0;
-
 
1840
                if($link_impersonate) {
-
 
1841
                    $url_impersonate = $this->url()->fromRoute('signin/impersonate'); 
-
 
1842
                } else {
Línea 1838... Línea 1843...
1838
                $link_admin         = $currentUser->usertype_id == UserType::ADMIN ? 1 : 0;
1843
                    $url_impersonate = '';
Línea 1839... Línea 1844...
1839
                $link_impersonate   = $currentUser->is_super_user == User::IS_SUPER_USER_YES ? 1 : 0;
1844
                }
1840
 
1845
 
Línea 1854... Línea 1859...
1854
                    $country = $location->country;
1859
                    $country = $location->country;
1855
                } else {
1860
                } else {
1856
                    $country = '';
1861
                    $country = '';
1857
                }
1862
                }
Línea -... Línea 1863...
-
 
1863
                
Línea 1858... Línea 1864...
1858
                
1864
 
1859
                
1865
                
1860
 
1866
 
1861
                if($currentUser->usertype_id == UserType::ADMIN) {
1867
                if($currentUser->usertype_id == UserType::ADMIN) {
1862
                    $link_admin = '/backend/signin-admin';
1868
                    $url_admin = $this->url()->fromRoute( 'backend/signin-admin');
Línea -... Línea 1869...
-
 
1869
                } else {
-
 
1870
                    $url_admin = '';
1863
                } else {
1871
                }
1864
                    $link_admin = '';
1872
                
1865
                }
1873
     
1866
                
1874
                
1867
                $link_company = '';
1875
                $link_company = '';
Línea 1986... Línea 1994...
1986
                return new JsonModel([
1994
                return new JsonModel([
1987
                    'menu'                  => $menu,
1995
                    'menu'                  => $menu,
1988
                    'isChatPage'            => $isChatPage == 1,
1996
                    'isChatPage'            => $isChatPage == 1,
1989
                    'routeCheckSession'     => $routeCheckSession,
1997
                    'routeCheckSession'     => $routeCheckSession,
1990
                    'linkAdmin'             => $link_admin == 1,
1998
                    'linkAdmin'             => $link_admin == 1,
-
 
1999
                    'urlAdmin'              => $url_admin,
1991
                    'linkImpersonate'       => $link_impersonate == 1,
2000
                    'linkImpersonate'       => $link_impersonate ==1 ,
-
 
2001
                    'urlImpersonate'        => $url_impersonate,
1992
                    'image'                 => $image,
2002
                    'image'                 => $image,
1993
                    'fullName'              => $fullname,
2003
                    'fullName'              => $fullname,
1994
                    'country'               => $country,
2004
                    'country'               => $country,
1995
                    'visits'                => $visits,
2005
                    'visits'                => $visits,
1996
                    'connections'           => $connections,
2006
                    'connections'           => $connections,
Línea 2010... Línea 2020...
2010
            return new JsonModel([
2020
            return new JsonModel([
2011
                'menu'                  => [],
2021
                'menu'                  => [],
2012
                'isChatPage'            => false,
2022
                'isChatPage'            => false,
2013
                'routeCheckSession'     => '',
2023
                'routeCheckSession'     => '',
2014
                'linkAdmin'             => false,
2024
                'linkAdmin'             => false,
-
 
2025
                'urlAdmin'              => '',
2015
                'linkImpersonate'       => false,
2026
                'linkImpersonate'       => false,
-
 
2027
                'urlImpersonate'        => '',
2016
                'image'                 => '',
2028
                'image'                 => '',
2017
                'fullName'              => '',
2029
                'fullName'              => '',
2018
                'country'               => 0,
2030
                'country'               => 0,
2019
                'visits'                => 0,
2031
                'visits'                => 0,
2020
                'connections'           => 0,
2032
                'connections'           => 0,