mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-02 03:47:09 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
dde45262b0
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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###
|
||||
|
||||
|
|
Loading…
Reference in a new issue