Changed to non-edit mode and a small typo in comment

This commit is contained in:
Caribana 2018-07-23 14:59:18 +02:00
parent 382b93196c
commit e0f88d0030

View File

@ -41,8 +41,8 @@ if ($payload) {
$_SESSION['name'] = $payload['name']; $_SESSION['name'] = $payload['name'];
// Is this user admin // Is this user admin
$_SESSION['admin'] = ''; $_SESSION['admin'] = '';
// Set to 1 to allow noramle users to add new entries en edit existing // Set to 1 to allow normal users to add new entries en edit existing
$_SESSION['allowedit'] = 1; // $_SESSION['allowedit'] = 1;
if( array_key_exists($userid, $admins)) { if( array_key_exists($userid, $admins)) {
$_SESSION['admin'] = 1; $_SESSION['admin'] = 1;
} }