Changeset 1904


Ignore:
Timestamp:
12/29/09 10:13:50 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhoria do FM. melhorias na interface, Compartilhamento de grupos

Location:
trunk/phpgwapi/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.accounts_ldap.inc.php

    r837 r1904  
    533533                                else 
    534534                                { 
    535                                         $filter = "(&(gidnumber=*)(phpgwaccounttype=g)(|(uid=*$query*)(sn=*$query*)(cn=*$query*)(givenname=*$query*)))"; 
     535                                        if ($_type == 'both') 
     536                                                $filter = "(&(gidnumber=*)(phpgwaccounttype=g)(|(uid=$query)(sn=$query)(cn=$query)(givenname=$query)))"; 
     537                                        else 
     538                                                $filter = "(&(gidnumber=*)(phpgwaccounttype=g)(|(uid=*$query*)(sn=*$query*)(cn=*$query*)(givenname=*$query*)))"; 
    536539                                } 
    537540                                $sri = ldap_search($this->ds, $this->group_context, $filter); 
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r1855 r1904  
    645645                        if ($data['relatives'][0] == RELATIVE_NONE || $data['relatives'][0] == RELATIVE_ALL) 
    646646                        { 
    647                                 $path = explode('/',$data['string']); 
    648                                 $data['string'] = '/'.$path[1].'/'.$path[2]; 
    649                         } 
     647                                $path = explode(SEP,$data['string']); 
     648                                $data['string'] = SEP.$path[1].SEP.$path[2]; 
     649                        } 
     650                        if ($data['operation'] == PHPGW_ACL_READ){ 
     651                                $user_groups = $GLOBALS['phpgw']->accounts->membership(); 
     652                                foreach($user_groups as $val){ 
     653                                        if (strpos($data['string'],$this->fakebase.SEP.$GLOBALS['phpgw']->accounts->id2name($val['account_id'])) === 0) 
     654                                                return true; 
     655                                } 
     656                        } 
     657 
    650658 
    651659 
Note: See TracChangeset for help on using the changeset viewer.