Changeset 317 for trunk/expressoAdmin1_2/inc/class.user.inc.php
- Timestamp:
- 06/17/08 14:43:30 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.user.inc.php
r309 r317 132 132 if (($this->current_config['expressoAdmin_samba_support'] == 'true') && ($params['use_attrs_samba'] == 'on')) 133 133 { 134 135 // Qualquer um que crie um usuário, deve ter permissão para adicionar a senha samba. 134 136 // Verifica o acesso do gerente aos atributos samba 135 if ($this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_sambausers_attributes'))136 {137 //if ($this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_sambausers_attributes')) 138 //{ 137 139 //Verifica se o binario para criar as senhas do samba exite. 138 140 if (!is_file('/home/expressolivre/mkntpwd')) … … 162 164 $user_info['sambaPwdMustChange'] = '2147483647'; 163 165 } 164 }166 //} 165 167 } 166 168 … … 292 294 (!$this->functions->check_acl($manager_account_lid,'change_users_password')) && 293 295 (!$this->functions->check_acl($manager_account_lid,'edit_sambausers_attributes')) && 294 (!$this->functions->check_acl($manager_account_lid,'manipulate_corporative_information')) 296 (!$this->functions->check_acl($manager_account_lid,'manipulate_corporative_information')) && 297 (!$this->functions->check_acl($manager_account_lid,'edit_users_phonenumber')) 295 298 ) 296 299 { … … 340 343 $ldap_mod_replace['mail'] = $new_values['mail']; 341 344 $this->ldap_functions->replace_user2maillists($new_values['mail'], $old_values['mail']); 345 $this->ldap_functions->replace_mail_from_institutional_account($new_values['mail'], $old_values['mail']); 342 346 $this->db_functions->write_log("alterado mail do usuario",'',$dn,'',''); 343 347 } … … 354 358 } 355 359 */ 356 if (($diff['telephonenumber']) && ($old_values['telephonenumber'] != ''))357 {358 $ldap_mod_replace['telephonenumber'] = $new_values['telephonenumber'];359 $this->db_functions->write_log("alterado telephonenumber do usuario",'',$dn,'','');360 }361 360 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 362 361 // Passwd Expired - Com atributo … … 397 396 398 397 $this->db_functions->write_log("alterado password do usuario",'',$dn,'',''); 398 } 399 } 400 401 if ( ($this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_users')) || 402 ($this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_users_phonenumber')) ) 403 { 404 if (($diff['telephonenumber']) && ($old_values['telephonenumber'] != '')) 405 { 406 $ldap_mod_replace['telephonenumber'] = $new_values['telephonenumber']; 407 $this->db_functions->write_log("alterado telephonenumber do usuario",'',$dn,'',''); 399 408 } 400 409 }
Note: See TracChangeset
for help on using the changeset viewer.