Skip to content

Commit

Permalink
Pause is now a function passed to the onBeforeAction method.
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrandin committed May 12, 2014
1 parent e51ff54 commit b3a8a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/entry.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ AccountsEntry =
signUpRoute = Router.routes['entrySignUp']
signUpRoute.options.template = appConfig.signUpTemplate

signInRequired: (router, extraCondition) ->
signInRequired: (router, pause, extraCondition) ->
extraCondition ?= true
unless Meteor.loggingIn()
unless Meteor.user() and extraCondition
Session.set('fromWhere', router.path)
Router.go('/sign-in')
Session.set('entryError', t9n('error.signInRequired'))
router.pause()
pause.call()

@AccountsEntry = AccountsEntry

Expand Down

0 comments on commit b3a8a6d

Please sign in to comment.