From 4036532680fff0f24c6490967522d917d0ceb1b1 Mon Sep 17 00:00:00 2001 From: Tery Lim Date: Mon, 9 Jun 2014 00:35:35 +0800 Subject: [PATCH 1/3] Fix indentation --- server/users/user_handler.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/users/user_handler.coffee b/server/users/user_handler.coffee index 89522208b..508578785 100644 --- a/server/users/user_handler.coffee +++ b/server/users/user_handler.coffee @@ -150,7 +150,7 @@ UserHandler = class UserHandler extends Handler return @sendDatabaseError(res, err) if err res.send JSON.stringify(count + 1) - getSimulatorLeaderboardQueryParameters: (req) -> + getSimulatorLeaderboardQueryParameters: (req) -> @validateSimulateLeaderboardRequestParameters(req) query = {} From cb8a2b36c62cc7db7691fc7ba137b0c99392bcfe Mon Sep 17 00:00:00 2001 From: Tery Lim Date: Mon, 9 Jun 2014 00:35:59 +0800 Subject: [PATCH 2/3] Fix typo (missing e) --- server_setup.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_setup.coffee b/server_setup.coffee index d214497cb..0cf6b6cc3 100644 --- a/server_setup.coffee +++ b/server_setup.coffee @@ -48,7 +48,7 @@ setupPassportMiddleware = (app) -> app.use(authentication.initialize()) app.use(authentication.session()) -setupOneSecondDelayMiddlware = (app) -> +setupOneSecondDelayMiddleware = (app) -> if(config.slow_down) app.use((req, res, next) -> setTimeout((-> next()), 1000)) @@ -74,7 +74,7 @@ exports.setupMiddleware = (app) -> setupMiddlewareToSendOldBrowserWarningWhenPlayersViewLevelDirectly app setupExpressMiddleware app setupPassportMiddleware app - setupOneSecondDelayMiddlware app + setupOneSecondDelayMiddleware app ###Routing function implementations### From 6597b687eb025030ece690e6428bdcc59f1ace9e Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sun, 8 Jun 2014 11:52:16 -0600 Subject: [PATCH 3/3] Only start profiles in edit mode if they are yours. --- app/views/account/profile_view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/account/profile_view.coffee b/app/views/account/profile_view.coffee index e1d4ba520..ccec22977 100644 --- a/app/views/account/profile_view.coffee +++ b/app/views/account/profile_view.coffee @@ -70,7 +70,7 @@ module.exports = class ProfileView extends View context.allowedToEditJobProfile = @user and (me.isAdmin() or (context.myProfile && !me.get('anonymous'))) context.profileApproved = @user?.get 'jobProfileApproved' context.progress = @progress ? @updateProgress() - @editing ?= context.progress < 0.8 + @editing ?= context.myProfile and context.progress < 0.8 context.editing = @editing context.marked = marked context.moment = moment