fix accidentally removed code

This commit is contained in:
Isaac Connor 2019-09-03 11:33:13 -04:00
parent 50aa0108e5
commit 92bc1791f5
1 changed files with 5 additions and 1 deletions

View File

@ -253,7 +253,11 @@ function userFromSession() {
$user = getAuthUser($_SESSION['AuthHash'.$_SESSION['remoteAddr']]);
else
ZM\Logger::Debug("No auth hash in session, there should have been");
} else {
# Need to refresh permissions and validate that the user still exists
$sql = 'SELECT * FROM Users WHERE Enabled=1 AND Username=?';
$user = dbFetchOne($sql, NULL, array($_SESSION['username']));
}
} else {
ZM\Logger::Debug('No username in session');
}