Ignore:
Timestamp:
06/17/08 14:43:30 (16 years ago)
Author:
niltonneto
Message:

Versionamento feito pelo desenvolvedor (jakjr).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.user.inc.php

    r309 r317  
    132132                                if (($this->current_config['expressoAdmin_samba_support'] == 'true') && ($params['use_attrs_samba'] == 'on')) 
    133133                                { 
     134                                         
     135                                        // Qualquer um que crie um usuário, deve ter permissão para adicionar a senha samba. 
    134136                                        // 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                                        //{ 
    137139                                                //Verifica se o binario para criar as senhas do samba exite. 
    138140                                                if (!is_file('/home/expressolivre/mkntpwd')) 
     
    162164                                                        $user_info['sambaPwdMustChange']        = '2147483647'; 
    163165                                                } 
    164                                         } 
     166                                        //} 
    165167                                } 
    166168                                 
     
    292294                                (!$this->functions->check_acl($manager_account_lid,'change_users_password')) && 
    293295                                (!$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')) 
    295298                                ) 
    296299                        { 
     
    340343                                        $ldap_mod_replace['mail'] = $new_values['mail']; 
    341344                                        $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']); 
    342346                                        $this->db_functions->write_log("alterado mail do usuario",'',$dn,'',''); 
    343347                                } 
     
    354358                                } 
    355359                                */ 
    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                                 } 
    361360                                //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
    362361                                // Passwd Expired - Com atributo 
     
    397396                                         
    398397                                        $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,'',''); 
    399408                                } 
    400409                        } 
Note: See TracChangeset for help on using the changeset viewer.