Changeset 1684


Ignore:
Timestamp:
11/20/09 08:28:07 (14 years ago)
Author:
niltonneto
Message:

Ticket #773 - Correção de problema crítico no acesso indevido aos links do Admin.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/inc/hook_admin.inc.php

    r1174 r1684  
    2121                $file['Peer Servers']               = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiserver.list_servers'); 
    2222        } 
    23 */ 
    24         /*if (! $GLOBALS['phpgw']->acl->check('account_access',1,'admin')) 
    25         { 
    26                 $file['User Accounts']              = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_users'); 
    27         } 
    28  
    29         if (! $GLOBALS['phpgw']->acl->check('group_access',1,'admin')) 
    30         { 
    31                 $file['User Groups']                = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'); 
    32         }*/ 
    33  
     23*/       
    3424        if (! $GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) 
    3525        { 
  • trunk/admin/inc/hook_sidebox_menu.inc.php

    r89 r1684  
    3030                        $file['Site Configuration']         = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin'); 
    3131                } 
    32 /* 
     32/*               
    3333                if (! $GLOBALS['phpgw']->acl->check('peer_server_access',1,'admin')) 
    3434                { 
    3535                        $file['Peer Servers']               = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiserver.list_servers'); 
    36                 } 
    37                 if (! $GLOBALS['phpgw']->acl->check('account_access',1,'admin')) 
    38                 { 
    39                         $file['User Accounts']              = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_users'); 
    40                 } 
    41  
    42                 if (! $GLOBALS['phpgw']->acl->check('group_access',1,'admin')) 
    43                 { 
    44                         $file['User Groups']                = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'); 
    4536                } 
    4637*/ 
  • trunk/calendar/inc/class.uicustom_fields.inc.php

    r2 r1684  
    4040                function index($error='') 
    4141                { 
     42                        if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
     43                        { 
     44                              $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 
     45                        } 
    4246                        unset($GLOBALS['phpgw_info']['flags']['noheader']); 
    4347                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
  • trunk/calendar/inc/class.uigroup_access.inc.php

    r1644 r1684  
    3333        function index(){ 
    3434                 
     35                if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
     36                { 
     37                      $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 
     38                } 
     39 
    3540                $GLOBALS['phpgw_info']['flags'] = array( 
    3641                                        'currentapp' => 'calendar', 
  • trunk/calendar/inc/class.uiholiday.inc.php

    r204 r1684  
    4848                function admin() 
    4949                { 
     50                        if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
     51                        { 
     52                              $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 
     53                        } 
    5054                        unset($GLOBALS['phpgw_info']['flags']['noheader']); 
    5155                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
  • trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php

    r458 r1684  
    5353                { 
    5454                        // Caso nao seja admin, sai. 
    55                         if ($GLOBALS['phpgw']->acl->check('group_access',1,'admin')) 
     55                        if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
    5656                        { 
    5757                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 
     
    129129                { 
    130130                        // Caso nao seja admin, sai. 
    131                         if ($GLOBALS['phpgw']->acl->check('group_access',1,'admin')) 
     131                        if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
    132132                        { 
    133133                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 
     
    207207                function delete_managers() 
    208208                { 
     209                        if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
     210                        { 
     211                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 
     212                        } 
    209213                        // Criar uma verificação e jogar a query para o BO. 
    210214                        $context = $_GET['context']; 
     
    232236                { 
    233237                        // Caso nao seja admin, sai. 
    234                         if ($GLOBALS['phpgw']->acl->check('group_access',1,'admin')) 
     238                        if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
    235239                        { 
    236240                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 
  • trunk/expressoAdmin1_2/inc/class.uisectors.inc.php

    r1516 r1684  
    136136                        ); 
    137137                        $p->set_var($var); 
    138  
    139                         if (! $GLOBALS['phpgw']->acl->check('group_access',4,'admin')) 
    140                         { 
    141                                 $p->set_var('input_add','<input type="submit" value="' . lang('Add Sectors') . '">'); 
    142                         } 
     138                        $p->set_var('input_add','<input type="submit" value="' . lang('Add Sectors') . '">'); 
    143139                         
    144140                        $p->parse('rows','row_empty',True); 
  • trunk/jabberit_messenger/inc/class.uiconforganization.inc.php

    r863 r1684  
    9090        public final function backPage() 
    9191        { 
    92                 if($GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) 
     92                if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 
    9393                { 
    94                         $GLOBALS['phpgw']->redirect_link('/index.php'); 
     94                        $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 
    9595                }                
    9696                 
  • trunk/jabberit_messenger/inc/class.uigroupslocked.inc.php

    r1438 r1684  
    112112        public final function add() 
    113113        { 
    114                 if($GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) 
     114                if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 
    115115                { 
    116                         $GLOBALS['phpgw']->redirect_link('/index.php'); 
     116                        $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 
    117117                }                
    118118                 
  • trunk/jabberit_messenger/inc/class.uihostsjabber.inc.php

    r946 r1684  
    9797        public final function backPage() 
    9898        { 
    99                 if($GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) 
     99                if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 
    100100                { 
    101                         $GLOBALS['phpgw']->redirect_link('/index.php'); 
     101                        $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 
    102102                }                
    103103                 
  • trunk/jabberit_messenger/inc/class.uimodule.inc.php

    r423 r1684  
    8989        public final function add() 
    9090        { 
    91                 if($GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) 
     91                if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 
    9292                { 
    93                         $GLOBALS['phpgw']->redirect_link('/index.php'); 
     93                        $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 
    9494                }                
    9595                 
Note: See TracChangeset for help on using the changeset viewer.