Changeset 498
- Timestamp:
- 10/01/08 16:34:26 (16 years ago)
- Location:
- trunk/contactcenter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.bo_contactcenter.inc.php
r285 r498 324 324 return false; 325 325 } 326 327 326 $this->tree = array( 328 327 0 => array( 328 'type' => 'sql' 329 ), 330 1 => array( 329 331 'type' => 'sql' 330 332 ), … … 346 348 ) 347 349 ); 348 350 if($_SESSION['phpgw_info']['user']['preferences']['contactcenter']['shared_contacts']){ 351 $this->tree[2] = array('type' => 'sql'); 352 $this->tree['branches'][2] = array('name' => lang('Shared'), 353 'type' => 'catalog', 354 'class' => 'bo_shared_catalog_manager', 355 'icon' => 'people-mini.png', 356 'sub_branch' => false); 357 unset($_SESSION['phpgw_info']['user']['preferences']['contactcenter']['shared_contacts']); 358 } 349 359 $ldap = CreateObject('contactcenter.bo_ldap_manager'); 350 360 $ldap_srcs = $ldap->get_all_ldap_sources(); … … 352 362 if ($ldap_srcs) 353 363 { 354 $i = 2;364 $i = count($this->tree['branches']); //os Indices dos tipos tem o mesmo numero do de ramos. 355 365 reset($ldap_srcs); 356 366 while (list($id,) = each($ldap_srcs)) … … 392 402 if ($ldap_srcs) 393 403 { 394 $i = count($this->tree );404 $i = count($this->tree['branches']);//os Indices dos tipos tem o mesmo numero do de ramos. 395 405 396 406 reset($ldap_srcs); -
trunk/contactcenter/index.php
r395 r498 39 39 } 40 40 } 41 $obj = CreateObject('contactcenter.ui_data'); 41 // Verificar se há contatos compartilhados para o usuario logado 42 $acl = CreateObject("phpgwapi.acl",$GLOBALS['phpgw_info']['user']['account_id']); 43 $grants = $acl->get_grants("contactcenter"); 44 foreach($grants as $id => $rights){ 45 if ($id != $GLOBALS['phpgw_info']['user']['account_id']) { 46 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['shared_contacts'] = true; 47 } 48 } 49 $obj = CreateObject('contactcenter.ui_data'); 42 50 $obj->index(); 43 51 $GLOBALS['phpgw']->common->phpgw_footer();
Note: See TracChangeset
for help on using the changeset viewer.