Fix typo in session check (sesion -> session)

pull/4359/head
Richard Hansen 2020-09-26 14:04:17 -04:00 committed by John McLear
parent 02757079c0
commit 4332affba6
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ exports.checkAccess = async function(padID, sessionCookie, token, password, user
return DENY; return DENY;
} }
const passwordExempt = settings.sessionNoPassword && sesionAuthorID != null; const passwordExempt = settings.sessionNoPassword && sessionAuthorID != null;
const requirePassword = pad.isPasswordProtected() && !passwordExempt; const requirePassword = pad.isPasswordProtected() && !passwordExempt;
if (requirePassword) { if (requirePassword) {
if (password == null) { if (password == null) {