forked from extern/egroupware
Addressbook: Fix CRM view action for organisation was missing if user had no tracker access
This commit is contained in:
parent
ebbff0951d
commit
f410c8fffe
@ -415,17 +415,19 @@ class addressbook_ui extends addressbook_bo
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
// CRM view options
|
// CRM view options
|
||||||
$crm_count = 0;
|
|
||||||
$crm_apps = array('infolog','tracker');
|
$crm_apps = array('infolog','tracker');
|
||||||
foreach($crm_apps as $app)
|
foreach($crm_apps as $crm_index => $app)
|
||||||
{
|
{
|
||||||
if ($GLOBALS['egw_info']['user']['apps'][$app]) $crm_count++;
|
if (!$GLOBALS['egw_info']['user']['apps'][$app])
|
||||||
|
{
|
||||||
|
unset($crm_apps[$crm_index]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if($GLOBALS['egw_info']['user']['apps']['infolog'])
|
if($GLOBALS['egw_info']['user']['apps']['infolog'])
|
||||||
{
|
{
|
||||||
array_splice($crm_apps, 1, 0, 'infolog-organisation');
|
array_splice($crm_apps, 1, 0, 'infolog-organisation');
|
||||||
}
|
}
|
||||||
if($crm_count > 1)
|
if(count($crm_apps) > 1)
|
||||||
{
|
{
|
||||||
foreach($crm_apps as $app)
|
foreach($crm_apps as $app)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user