define global user variables so templates can manage user permissions
This commit is contained in:
parent
8128ed0556
commit
220f9b7e9f
1 changed files with 4 additions and 0 deletions
|
|
@ -2609,6 +2609,7 @@ abstract class CommonObject
|
|||
{
|
||||
global $conf,$langs,$object,$hookmanager;
|
||||
global $form,$bcnd,$var;
|
||||
global $user;
|
||||
//Line extrafield
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||
$extrafieldsline = new ExtraFields($this->db);
|
||||
|
|
@ -2633,6 +2634,7 @@ abstract class CommonObject
|
|||
{
|
||||
global $conf,$langs,$object,$hookmanager;
|
||||
global $form,$bcnd,$var;
|
||||
global $user;
|
||||
|
||||
//Line extrafield
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||
|
|
@ -2658,6 +2660,7 @@ abstract class CommonObject
|
|||
{
|
||||
global $conf,$user,$langs,$object,$hookmanager;
|
||||
global $form,$bcnd,$var;
|
||||
global $user;
|
||||
|
||||
//Line extrafield
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||
|
|
@ -3220,3 +3223,4 @@ abstract class CommonObject
|
|||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue