Update box_dolibarr_state_board.php
Global stats box is always enabled
This commit is contained in:
parent
a9ddf2a5ad
commit
d4aa0ae422
@ -60,13 +60,6 @@ class box_dolibarr_state_board extends ModeleBoxes
|
|||||||
global $conf, $user;
|
global $conf, $user;
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
|
|
||||||
// disable box for such cases
|
|
||||||
if (!empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) {
|
|
||||||
$this->enabled = 0; // disabled by this option
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->hidden = !(!empty($user->rights->societe->lire) && empty($user->socid));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user