Fix: add function for switch to another entity
This commit is contained in:
parent
255e1fdedf
commit
d8937157bf
@ -769,6 +769,8 @@ else
|
|||||||
$heightforframes=48;
|
$heightforframes=48;
|
||||||
|
|
||||||
// Switch to another entity
|
// Switch to another entity
|
||||||
|
if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY))
|
||||||
|
{
|
||||||
if (GETPOST('action') == 'switchentity' && $user->admin && ! $user->entity)
|
if (GETPOST('action') == 'switchentity' && $user->admin && ! $user->entity)
|
||||||
{
|
{
|
||||||
require_once("../class/actions_multicompany.class.php");
|
require_once("../class/actions_multicompany.class.php");
|
||||||
@ -781,6 +783,7 @@ if (GETPOST('action') == 'switchentity' && $user->admin && ! $user->entity)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user