Update card.php
This commit is contained in:
parent
d82c62c40d
commit
1359326337
@ -64,7 +64,7 @@ $backtopage = GETPOST('backtopage', 'alpha');
|
||||
$confirm = GETPOST('confirm', 'alpha');
|
||||
|
||||
$socid = GETPOST('socid', 'int') ?GETPOST('socid', 'int') : GETPOST('id', 'int');
|
||||
if ($user->socid && empty($conf->global->MAIN_SHOW_SOCIETE2EXTERN)) $socid = $user->socid;
|
||||
if ($user->socid && empty($conf->global->MAIN_EXTERNAL_USERS_CAN_SEE_SUBSIDIARY_COMPANIES)) $socid = $user->socid;
|
||||
if (empty($socid) && $action == 'view') $action = 'create';
|
||||
|
||||
$object = new Societe($db);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user