Pass user to template
authorJean-Guilhem Rouel <jean-gui@w3.org>
Fri, 18 Apr 2014 14:34:02 +0200
changeset 325 2018dac79d97
parent 324 a28e914ff8e0
child 326 8dd8caae67d7
Pass user to template
src/Org/W3/Cg/Pub/SpecBundle/Controller/ReportController.php
--- a/src/Org/W3/Cg/Pub/SpecBundle/Controller/ReportController.php	Wed Aug 14 21:03:50 2013 +0900
+++ b/src/Org/W3/Cg/Pub/SpecBundle/Controller/ReportController.php	Fri Apr 18 14:34:02 2014 +0200
@@ -100,7 +100,7 @@
                      
                     break;
                 }
-		$report = array('name'=>$gr_obj->getName(),'shortName'=>$gr_obj->getShortName(),'draft'=>array(),'final'=>array(),'hasSpec'=>false,'hasAccess'=>$gr_obj->hasAccess($this->getLogin()->login),'isChair'=>$gr_obj->isChair($this->getLogin()),'hasCommitRight' => $has_commit_right);
+                $report = array('name'=>$gr_obj->getName(),'shortName'=>$gr_obj->getShortName(),'draft'=>array(),'final'=>array(),'hasSpec'=>false,'hasAccess'=>$gr_obj->hasAccess($this->getLogin()->login),'isChair'=>$gr_obj->isChair($this->getLogin()),'hasCommitRight' => $has_commit_right, 'user' => $user);
                 if($specPGs != null){
 			foreach($specPGs as $specPG){
 				$revs = $this->getSpecRevsBySpecId($specPG->getSpec()->getId());