commit
5a2647906e
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2015 Charlie BENKE <charlie@patas-monkey.com>
|
* Copyright (C) 2015-2016 Charlie BENKE <charlie@patas-monkey.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -35,7 +35,14 @@ elseif ($module == 'project') { $permission=$user->rights->projet->creer; }
|
|||||||
elseif ($module == 'action') { $permission=$user->rights->agenda->myactions->create; }
|
elseif ($module == 'action') { $permission=$user->rights->agenda->myactions->create; }
|
||||||
elseif ($module == 'shipping') { $permission=$user->rights->expedition->creer; }
|
elseif ($module == 'shipping') { $permission=$user->rights->expedition->creer; }
|
||||||
elseif ($module == 'project_task') { $permission=$user->rights->projet->creer; }
|
elseif ($module == 'project_task') { $permission=$user->rights->projet->creer; }
|
||||||
elseif (! isset($permission)) { $permission=$user->rights->$module->creer; } // If already defined by caller page
|
elseif (! isset($permission) && isset($user->rights->$module->creer))
|
||||||
|
{
|
||||||
|
$permission=$user->rights->$module->creer;
|
||||||
|
}
|
||||||
|
elseif (! isset($permission) && isset($user->rights->$module->write))
|
||||||
|
{
|
||||||
|
$permission=$user->rights->$module->write;
|
||||||
|
}
|
||||||
|
|
||||||
$formcompany= new FormCompany($db);
|
$formcompany= new FormCompany($db);
|
||||||
$companystatic=new Societe($db);
|
$companystatic=new Societe($db);
|
||||||
@ -228,4 +235,13 @@ $userstatic=new User($db);
|
|||||||
<?php } } ?>
|
<?php } } ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- TEMPLATE CONTACTS HOOK BEGIN HERE -->
|
||||||
|
<?php
|
||||||
|
if (is_object($hookmanager))
|
||||||
|
{
|
||||||
|
$hookmanager->initHooks(array('contacttpl'));
|
||||||
|
$parameters=array();
|
||||||
|
$reshook=$hookmanager->executeHooks('formContactTpl',$parameters,$object,$action);
|
||||||
|
}
|
||||||
|
?>
|
||||||
<!-- END PHP TEMPLATE CONTACTS -->
|
<!-- END PHP TEMPLATE CONTACTS -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user