Changeset 1685 for branches/2.0/expressoAdmin1_2
- Timestamp:
- 11/20/09 08:28:42 (14 years ago)
- Location:
- branches/2.0/expressoAdmin1_2/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/expressoAdmin1_2/inc/class.uimanagers.inc.php
r458 r1685 53 53 { 54 54 // Caso nao seja admin, sai. 55 if ( $GLOBALS['phpgw']->acl->check('group_access',1,'admin'))55 if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 56 56 { 57 57 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); … … 129 129 { 130 130 // Caso nao seja admin, sai. 131 if ( $GLOBALS['phpgw']->acl->check('group_access',1,'admin'))131 if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 132 132 { 133 133 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); … … 207 207 function delete_managers() 208 208 { 209 if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 210 { 211 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 212 } 209 213 // Criar uma verificação e jogar a query para o BO. 210 214 $context = $_GET['context']; … … 232 236 { 233 237 // Caso nao seja admin, sai. 234 if ( $GLOBALS['phpgw']->acl->check('group_access',1,'admin'))238 if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 235 239 { 236 240 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); -
branches/2.0/expressoAdmin1_2/inc/class.uisectors.inc.php
r1394 r1685 133 133 $p->set_var($var); 134 134 135 if (! $GLOBALS['phpgw']->acl->check('group_access',4,'admin')) 136 { 137 $p->set_var('input_add','<input type="submit" value="' . lang('Add Sectors') . '">'); 138 } 135 $p->set_var('input_add','<input type="submit" value="' . lang('Add Sectors') . '">'); 139 136 140 137 $p->parse('rows','row_empty',True);
Note: See TracChangeset
for help on using the changeset viewer.