Changeset 1685
- Timestamp:
- 11/20/09 08:28:42 (14 years ago)
- Location:
- branches/2.0
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/inc/hook_admin.inc.php
r1174 r1685 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 { -
branches/2.0/admin/inc/hook_sidebox_menu.inc.php
r89 r1685 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 */ -
branches/2.0/calendar/inc/class.uicustom_fields.inc.php
r2 r1685 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']); -
branches/2.0/calendar/inc/class.uigroup_access.inc.php
r580 r1685 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', … … 66 71 $scripts = "<script src='".$module_name."/js/connector.js' type='text/javascript'></script>". 67 72 "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ". 68 "<script src=' ".$this->template_dir."/js/search.js' type='text/javascript'></script>";73 "<script src='calendar/js/search.js' type='text/javascript'></script>"; 69 74 // Fim 70 75 -
branches/2.0/calendar/inc/class.uiholiday.inc.php
r204 r1685 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']); -
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); -
branches/2.0/jabberit_messenger/inc/class.uiconforganization.inc.php
r863 r1685 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 -
branches/2.0/jabberit_messenger/inc/class.uigroupslocked.inc.php
r946 r1685 70 70 71 71 $ous = "<option value='-1'>-- ".lang('Select Organization')." --</option>"; 72 72 73 if( ($LdapOus = $ldap->getOrganizationsLdap()) ) 73 74 { 74 foreach($LdapOus as $ tmp)75 $ous .= "<option value='".$ tmp."'>".$tmp."</option>";75 foreach($LdapOus as $key=>$val ) 76 $ous .= "<option value='".$val."'>".$val."</option>"; 76 77 } 77 78 78 79 $groupsRestricts = ""; 79 80 … … 82 83 $glocked = explode(';',$GLOBALS['phpgw_info']['server']['groups_locked_jabberit']); 83 84 natcasesort($glocked); 84 85 85 86 foreach( $glocked as $tmp ){ 86 87 $option = explode(":",$tmp); … … 111 112 public final function add() 112 113 { 113 if( $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))114 if( !$GLOBALS['phpgw']->acl->check('run',1,'admin') ) 114 115 { 115 $GLOBALS['phpgw']->redirect_link('/ index.php');116 $GLOBALS['phpgw']->redirect_link('/admin/index.php'); 116 117 } 117 118 -
branches/2.0/jabberit_messenger/inc/class.uihostsjabber.inc.php
r946 r1685 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 -
branches/2.0/jabberit_messenger/inc/class.uimodule.inc.php
r423 r1685 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.