Avoid get user for notifications when is anonymous

stable
Álex Hermida 2018-04-12 10:15:14 +02:00
parent b7cbfcf542
commit c36ee218d2
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ class EventsService
@rootScope.$digest() @rootScope.$digest()
liveNotifications: -> liveNotifications: ->
if not @.auth.userData?
return
userId = @.auth.userData.get('id') userId = @.auth.userData.get('id')
subscribe = () => subscribe = () =>