-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Hi guys,
just got an error in this line https://github.com/mizzao/meteor-partitioner/blob/master/grouping.coffee#L118. If there is NO user, then we get an
39mException while invoking method 'xxx TypeError: Cannot read property 'admin' of undefined
�[34mI20170320-13:58:40.429(0)? �[39m at Object.userFindHook (packages/mizzao_partitioner/grouping.coffee:118:20)
So I guess there should be a guard like return true if user.?admin and !groupId (I don't know coffescript, but saw this ? feature somewhere