Moved allowedit to accred_config config file
This commit is contained in:
@@ -11,7 +11,7 @@ require_once 'vendor/autoload.php';
|
||||
$aid = $_GET['aid'];
|
||||
$isAdmin = $_SESSION['admin']==1;
|
||||
|
||||
$isEditable = $_SESSION['allowedit']==1;
|
||||
$isEditable = $cfg['editmode']==1;
|
||||
if(!$userid) {
|
||||
syslog(LOG_ERR, "Unauthorized access to form page aid:$aid from : {$_SERVER['REMOTE_ADDR']} ({$_SERVER['HTTP_USER_AGENT']})");
|
||||
echo "<script type='text/javascript'> document.location = 'accred_list'; </script>";
|
||||
|
||||
Reference in New Issue
Block a user