mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 02:11:27 +01:00
Fix phpcs
This commit is contained in:
@@ -161,8 +161,8 @@ function getDolUserInt($key, $default = 0, $tmpuser = null)
|
||||
/**
|
||||
* Is Dolibarr module enabled
|
||||
*
|
||||
* @param string $module module name to check
|
||||
* @return int
|
||||
* @param string $module Module name to check
|
||||
* @return boolean True if module is enabled
|
||||
*/
|
||||
function isModEnabled($module)
|
||||
{
|
||||
|
||||
@@ -123,7 +123,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
||||
'enabled'=> ((isModEnabled('societe') &&
|
||||
(empty($conf->global->SOCIETE_DISABLE_PROSPECTS) || empty($conf->global->SOCIETE_DISABLE_CUSTOMERS))
|
||||
)
|
||||
|| (isModEnabled('supplier_proposal') || isModEnabled('supplier_order') || isModEnabled('supplier_invoice'))
|
||||
|| (isModEnabled('supplier_proposal') || isModEnabled('supplier_order') || isModEnabled('supplier_invoice'))
|
||||
),
|
||||
'perms'=> ($user->hasRight('societe', 'lire') || $user->hasRight('fournisseur', 'lire') || $user->hasRight('supplier_order', 'lire') || $user->hasRight('supplier_invoice', 'lire') || $user->hasRight('supplier_proposal', 'lire')),
|
||||
'module'=>'societe|fournisseur'
|
||||
|
||||
Reference in New Issue
Block a user