Commit 9e40fddb authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Improved a bit information given by ACL debug mode

Showing with 2 additions and 2 deletions
+2 -2
...@@ -34,7 +34,7 @@ function smarty_block_render($params, $text, &$smarty) ...@@ -34,7 +34,7 @@ function smarty_block_render($params, $text, &$smarty)
/* Debug output */ /* Debug output */
if (session::is_set('DEBUGLEVEL') && session::get('DEBUGLEVEL') & DEBUG_ACL ) { if (session::is_set('DEBUGLEVEL') && session::get('DEBUGLEVEL') & DEBUG_ACL ) {
echo '<div style="color:blue;">'.$acl.'</div>'; echo '<div style="color:blue;">'.$acl.(isset($params['aclName']) ? ' ['.$params['aclName'].']' : '').'</div>';
} }
/* Read / Write*/ /* Read / Write*/
......
...@@ -613,7 +613,7 @@ class Attribute ...@@ -613,7 +613,7 @@ class Attribute
*/ */
function renderAcl($display) function renderAcl($display)
{ {
return '{render acl=$'.$this->getAcl()."ACL}\n$display\n{/render}"; return '{render aclName="'.$this->getAcl().'" acl=$'.$this->getAcl()."ACL}\n$display\n{/render}";
} }
/*! \brief Get ACL information about the ACL we need to create /*! \brief Get ACL information about the ACL we need to create
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment