Changeset 32 for trunk/expressoAdmin1_2/inc/class.functions.inc.php
- Timestamp:
- 06/08/07 15:18:19 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.functions.inc.php
r27 r32 43 43 { 44 44 case list_users: 45 if ($array_acl[add_users] || $array_acl[edit_users] || $array_acl[delete_users] || $array_acl[change_users_password] || $array_acl[change_users_quote] || $array_acl[edit_sambausers_attributes] )45 if ($array_acl[add_users] || $array_acl[edit_users] || $array_acl[delete_users] || $array_acl[change_users_password] || $array_acl[change_users_quote] || $array_acl[edit_sambausers_attributes] || $array_acl[view_users]) 46 46 return true; 47 47 break; … … 62 62 return true; 63 63 break; 64 case view_users: 65 if ($array_acl[view_users]) 66 return true; 67 break; 64 68 case change_users_password: 65 69 if ($array_acl[change_users_password]) … … 134 138 break; 135 139 136 case manage_wf_sectors:137 if ($array_acl[manage_wf_sectors])138 return true;139 break;140 141 140 case view_global_sessions: 142 141 if ($array_acl[view_global_sessions]) … … 192 191 193 192 // Make a array read humam 193 // Last acl: 33.554.432 194 194 function make_array_acl($acl) 195 195 { … … 198 198 $array_acl['delete_users'] = $acl & 4; 199 199 $array_acl['rename_users'] = $acl & 8388608; 200 $array_acl['view_users'] = $acl & 33554432; 200 201 $array_acl['add_groups'] = $acl & 16; 201 202 $array_acl['edit_groups'] = $acl & 32; … … 430 431 { 431 432 $s = CreateObject('phpgwapi.sector_search_ldap'); 432 $sectors_info = $s->get_organizations($context, $selected, false, false);433 $sectors_info = $s->get_organizations($context, $selected, false, true); 433 434 return $sectors_info; 434 435 } 435 436 437 /* 436 438 function get_sectors($context, $selected='') 437 439 { … … 458 460 return false; 459 461 } 462 */ 460 463 461 464 // Get list of all levels, this function is used for sectors module.
Note: See TracChangeset
for help on using the changeset viewer.