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/expressoAdmin1_2/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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); 
Note: See TracChangeset for help on using the changeset viewer.