Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16697 Rev 16761
Línea 1... Línea 1...
1
<?php
1
<?php
-
 
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
-
 
3
 
2
$currentUser = $this->currentUserHelper();
4
$currentUser = $this->currentUserHelper();
3
$currentUser = $currentUser->getUser();
5
$currentUser = $currentUser->getUser();
Línea 4... Línea 6...
4
 
6
 
Línea -... Línea 7...
-
 
7
$routeTimeline = $this->url('feeds/timeline');
-
 
8
 
-
 
9
$roleName = $currentUser->getUserTypeId();
-
 
10
$allowFastSurvey = $acl->isAllowed($roleName, 'fast-survey') ? 1 : 0;
5
$routeTimeline = $this->url('feeds/timeline');
11
 
6
 
12
 
-
 
13
$js = <<<JS
7
$js = <<<JS
14
const routeTimeline = "$routeTimeline";
Línea 8... Línea 15...
8
const routeTimeline= "$routeTimeline"
15
const allowFastSurvey = "$allowFastSurvey";
9
JS;
16
JS;
10
 
17