Fix /whoami: remove fetch() for now
[vchess.git] / server / utils / access.js
index a7eb92a..11753a0 100644 (file)
@@ -48,7 +48,7 @@ module.exports =
 
        // Prevent direct access to AJAX results
        ajax: function(req, res, next) {
-               if (!req.xhr)
+    if (!req.xhr)
                        return res.json({errmsg: "Unauthorized access"});
                next();
        },