Changeset 1904
- Timestamp:
- 12/29/09 10:13:50 (14 years ago)
- Location:
- trunk/phpgwapi/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.accounts_ldap.inc.php
r837 r1904 533 533 else 534 534 { 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*)))"; 536 539 } 537 540 $sri = ldap_search($this->ds, $this->group_context, $filter); -
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r1855 r1904 645 645 if ($data['relatives'][0] == RELATIVE_NONE || $data['relatives'][0] == RELATIVE_ALL) 646 646 { 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 650 658 651 659
Note: See TracChangeset
for help on using the changeset viewer.