packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php
equal
deleted
inserted
replaced
20 session_start(); |
20 session_start(); |
21 |
21 |
22 $adm = !empty($_SERVER['REMOTE_USER']) && ldap_test_group_membership($_SERVER['REMOTE_USER'], 'rtp'); |
22 $adm = !empty($_SERVER['REMOTE_USER']) && ldap_test_group_membership($_SERVER['REMOTE_USER'], 'rtp'); |
23 define('IS_ADMIN', $adm); |
23 define('IS_ADMIN', $adm); |
24 |
24 |
|
25 if ( !IS_ADMIN && defined('NEED_ADMIN') ) |
|
26 { |
|
27 queue_message(E_ERROR, "Access to that URL is restricted to administrators."); |
|
28 redirect('/'); |
|
29 } |
|
30 |
25 if ( !isset($_SESSION['messages']) ) |
31 if ( !isset($_SESSION['messages']) ) |
26 $_SESSION['messages'] = array(); |
32 $_SESSION['messages'] = array(); |