- Timestamp:
- 10/06/09 10:27:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.bo_shared_people_manager.inc.php
r752 r1496 50 50 $array_map = array(); 51 51 $rules_inicio = $rules; 52 52 53 53 foreach($relacionados as $uid_relacionado => $tipo_relacionamento) { 54 54 $aclTemp = CreateObject("phpgwapi.acl",$uid_relacionado); 55 55 $aclTemp->read(); 56 56 $perms_relacao = $aclTemp->get_specific_rights($GLOBALS['phpgw_info']['user']['account_id'],'contactcenter'); //Preciso verificar as permissões que o contato relacionado deu para o atual 57 57 58 58 if(!($perms_relacao&1)) //Se não tiver permissão de leitura, nem se preocupe em listá-los 59 59 continue; … … 931 931 @return integer $id The Contact ID 932 932 */ 933 function add_single_entry ( $data )933 function add_single_entry ( $data , $owner) 934 934 { 935 935 $permissions = $this->security->get_permissions(); … … 1054 1054 if ($altered) 1055 1055 { 1056 $contact->set_field('id_owner',$GLOBALS['phpgw_info']['user']['account_id']); 1056 if ($owner) 1057 { 1058 $contact->set_field('id_owner',$owner); 1059 }else 1060 $contact->set_field('id_owner',$GLOBALS['phpgw_info']['user']['account_id']); 1057 1061 return $contact->commit(); 1058 1062 }
Note: See TracChangeset
for help on using the changeset viewer.