From ba161c1f6cafa3df6a9d23107b630673a83f4ecc Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Mon, 15 Jul 2013 14:35:33 -0400 Subject: [PATCH] removed couple console.logs --- src/categories.js | 1 - src/routes/user.js | 2 +- src/webserver.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/categories.js b/src/categories.js index 5f04069fe1..fd5cff501e 100644 --- a/src/categories.js +++ b/src/categories.js @@ -189,7 +189,6 @@ var RDB = require('./redis.js'), --topicCountToLoad; if(retrieved_topics.length === topicCountToLoad) { - console.log('derp'); callback(retrieved_topics); } }); diff --git a/src/routes/user.js b/src/routes/user.js index 91f7176384..d37ed696d6 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -61,7 +61,7 @@ var user = require('./../user.js'), }); app.get('/users/:userslug/edit', function(req, res) { - console.log('derp'); + if(!req.user) return res.redirect('/403'); diff --git a/src/webserver.js b/src/webserver.js index c731b3e387..6f9ab3decf 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -263,7 +263,6 @@ var express = require('express'), app.get('/test', function(req, res) { - console.log('derp'); /*user.get_userslugs_by_uids([1,2], function(data) { res.send(data); });*/