Moved allowedit to accred_config config file

This commit is contained in:
lars
2019-06-05 12:53:47 +02:00
parent a62b9c265b
commit 7f97a60334
3 changed files with 4 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
$_SESSION['state'] = $token;
$userid = $_SESSION['uid'];
$isAdmin = $_SESSION['admin']==1;
$isEditable = $_SESSION['allowedit']==1;
$isEditable = $cfg['editmode']==1;
// Bail out if not logged in
if($userid=='') {
header("location: index?");