Ignore:
Timestamp:
06/08/07 15:18:19 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

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

    r27 r32  
    4343                        { 
    4444                                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]) 
    4646                                                return true; 
    4747                                        break; 
     
    6262                                                return true; 
    6363                                        break; 
     64                                case view_users: 
     65                                        if ($array_acl[view_users]) 
     66                                                return true; 
     67                                        break; 
    6468                                case change_users_password: 
    6569                                        if ($array_acl[change_users_password]) 
     
    134138                                        break; 
    135139 
    136                                 case manage_wf_sectors: 
    137                                         if ($array_acl[manage_wf_sectors]) 
    138                                                 return true; 
    139                                         break; 
    140                                  
    141140                                case view_global_sessions: 
    142141                                        if ($array_acl[view_global_sessions]) 
     
    192191                 
    193192                // Make a array read humam 
     193                // Last acl:    33.554.432 
    194194                function make_array_acl($acl) 
    195195                { 
     
    198198                        $array_acl['delete_users'] = $acl & 4; 
    199199                        $array_acl['rename_users'] = $acl & 8388608; 
     200                        $array_acl['view_users'] = $acl & 33554432; 
    200201                        $array_acl['add_groups'] = $acl & 16; 
    201202                        $array_acl['edit_groups'] = $acl & 32; 
     
    430431                { 
    431432                        $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); 
    433434                        return $sectors_info; 
    434435                }                
    435436                 
     437                /* 
    436438                function get_sectors($context, $selected='') 
    437439                { 
     
    458460                                return false; 
    459461                } 
     462                */ 
    460463                 
    461464                // Get list of all levels, this function is used for sectors module. 
Note: See TracChangeset for help on using the changeset viewer.