Changeset 1684
- Timestamp:
- 11/20/09 08:28:07 (15 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/hook_admin.inc.php
r1174 r1684 21 21 $file['Peer Servers'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiserver.list_servers'); 22 22 } 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 */ 34 24 if (! $GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) 35 25 { -
trunk/admin/inc/hook_sidebox_menu.inc.php
r89 r1684 30 30 $file['Site Configuration'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin'); 31 31 } 32 /* 32 /* 33 33 if (! $GLOBALS['phpgw']->acl->check('peer_server_access',1,'admin')) 34 34 { 35 35 $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');45 36 } 46 37 */ -
trunk/calendar/inc/class.uicustom_fields.inc.php
r2 r1684 40 40 function index($error='') 41 41 { 42 if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 43 { 44 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 45 } 42 46 unset($GLOBALS['phpgw_info']['flags']['noheader']); 43 47 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); -
trunk/calendar/inc/class.uigroup_access.inc.php
r1644 r1684 33 33 function index(){ 34 34 35 if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 36 { 37 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 38 } 39 35 40 $GLOBALS['phpgw_info']['flags'] = array( 36 41 'currentapp' => 'calendar', -
trunk/calendar/inc/class.uiholiday.inc.php
r204 r1684 48 48 function admin() 49 49 { 50 if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 51 { 52 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/admin/index.php')); 53 } 50 54 unset($GLOBALS['phpgw_info']['flags']['noheader']); 51 55 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); -
trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php
r458 r1684 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')); -
trunk/expressoAdmin1_2/inc/class.uisectors.inc.php
r1516 r1684 136 136 ); 137 137 $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') . '">'); 143 139 144 140 $p->parse('rows','row_empty',True); -
trunk/jabberit_messenger/inc/class.uiconforganization.inc.php
r863 r1684 90 90 public final function backPage() 91 91 { 92 if( $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))92 if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 93 93 { 94 $GLOBALS['phpgw']->redirect_link('/ index.php');94 $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 95 95 } 96 96 -
trunk/jabberit_messenger/inc/class.uigroupslocked.inc.php
r1438 r1684 112 112 public final function add() 113 113 { 114 if( $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))114 if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 115 115 { 116 $GLOBALS['phpgw']->redirect_link('/ index.php');116 $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 117 117 } 118 118 -
trunk/jabberit_messenger/inc/class.uihostsjabber.inc.php
r946 r1684 97 97 public final function backPage() 98 98 { 99 if( $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))99 if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 100 100 { 101 $GLOBALS['phpgw']->redirect_link('/ index.php');101 $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 102 102 } 103 103 -
trunk/jabberit_messenger/inc/class.uimodule.inc.php
r423 r1684 89 89 public final function add() 90 90 { 91 if( $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))91 if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 92 92 { 93 $GLOBALS['phpgw']->redirect_link('/ index.php');93 $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 94 94 } 95 95
Note: See TracChangeset
for help on using the changeset viewer.