Changed to non-edit mode and a small typo in comment
This commit is contained in:
parent
382b93196c
commit
e0f88d0030
@ -41,8 +41,8 @@ if ($payload) {
|
||||
$_SESSION['name'] = $payload['name'];
|
||||
// Is this user admin
|
||||
$_SESSION['admin'] = '';
|
||||
// Set to 1 to allow noramle users to add new entries en edit existing
|
||||
$_SESSION['allowedit'] = 1;
|
||||
// Set to 1 to allow normal users to add new entries en edit existing
|
||||
// $_SESSION['allowedit'] = 1;
|
||||
if( array_key_exists($userid, $admins)) {
|
||||
$_SESSION['admin'] = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user