Fixing events for anonymous users

stable
Alejandro Alonso 2016-01-05 07:56:01 +01:00 committed by David Barragán Merino
parent c1e5eb285b
commit 7130737f34
1 changed files with 2 additions and 1 deletions

View File

@ -573,9 +573,10 @@ init = ($log, $rootscope, $auth, $events, $analytics, $translate, $location, $na
Promise.setScheduler (cb) -> Promise.setScheduler (cb) ->
$rootscope.$evalAsync(cb) $rootscope.$evalAsync(cb)
$events.setupConnection()
# Load user # Load user
if $auth.isAuthenticated() if $auth.isAuthenticated()
$events.setupConnection()
user = $auth.getUser() user = $auth.getUser()
# Analytics # Analytics