Fixed issue #16.
This commit is contained in:
parent
ec8c698e56
commit
82ca448fc3
@ -2,7 +2,9 @@
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" id="loggedForm" role="button" data-toggle="dropdown" href="#" aria-haspopup="true" aria-expanded="false"><mx:text id="firstName" /> <mx:text id="lastName" /> (<mx:text id="login" />)<span class="fa fa-lg fa-navicon"></span></a>
|
||||
<div id="loggedMenu" class="dropdown-menu text-center" aria-labelledby="loggedForm">
|
||||
<mx:bloc id="blocUrlAccount">
|
||||
<a class="nav-link" mXattribut="href:urlAccount"><span class="fa fa-lg fa-user"></span>Mon Compte</a>
|
||||
</mx:bloc id="blocUrlAccount">
|
||||
<a class="nav-link" mXattribut="href:disconnectURL"><span class="fa fa-lg fa-sign-out"></span><mx:text id="decon"/></a>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -150,14 +150,19 @@ class UserPrint extends Printing
|
||||
|
||||
/* création de l'url de l'outil de gestion du compte utilisateur */
|
||||
$tabObjectNode =$this->getObjectSon(eid());
|
||||
$hasUserModif = false;
|
||||
for ($j=0; $j<count($tabObjectNode);$j++)
|
||||
{
|
||||
if ($tabObjectNode[$j][0]->getClassName()=="UserModif")
|
||||
{
|
||||
$MaTemplate->MxAttribut("urlAccount", formatUrl($tabObjectNode[$j][1]->getId(), $tabObjectNode[$j][0]->getClassName(), $tabObjectNode[$j][0]->getMethodName(), "", ""));
|
||||
$MaTemplate->MxAttribut("blocUrlAccount".".urlAccount", formatUrl($tabObjectNode[$j][1]->getId(), $tabObjectNode[$j][0]->getClassName(), $tabObjectNode[$j][0]->getMethodName(), "", ""));
|
||||
$hasUserModif = true;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$hasUserModif)
|
||||
$MaTemplate->MxBloc("blocUrlAccount", "delete");
|
||||
|
||||
/* création de l'url de login */
|
||||
$url =$_SERVER['SCRIPT_NAME'];
|
||||
$url.="?system=disconnectSession";
|
||||
|
@ -96,7 +96,7 @@ class PermissionManager extends Manager
|
||||
$nodeAvailable=(is_array($nodeAvailable))?$nodeAvailable:"";
|
||||
|
||||
# On ajoute la gestion de cache
|
||||
if (DATA_ACCES_CACHE_PERMISSION==true)
|
||||
if (DATA_ACCES_CACHE_PERMISSION)
|
||||
$tab=$this->LoadFromIdCache($id);
|
||||
|
||||
# Cas l'enregistrement n'existe pas dans la cache
|
||||
@ -107,7 +107,7 @@ class PermissionManager extends Manager
|
||||
$tab=new Permission();
|
||||
$tab->doLoad($id, $result);
|
||||
|
||||
if (DATA_ACCES_CACHE_PERMISSION==true)
|
||||
if (DATA_ACCES_CACHE_PERMISSION)
|
||||
$this->InsertCache($id, $tab);
|
||||
}
|
||||
return $tab;
|
||||
|
Loading…
x
Reference in New Issue
Block a user