forked from science-ation/science-ation
if access is not allowed, make sure we exit after redirecting the script to the login page
This commit is contained in:
parent
55fcc1cf06
commit
ec28dcfb7a
@ -39,7 +39,10 @@ function auth_required($access="")
|
||||
global $config;
|
||||
|
||||
if(!auth_has_access($access))
|
||||
{
|
||||
header("Location: ".$config['SFIABDIRECTORY']."/committee_login.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user