diff --git a/src/app/browser.coffee b/src/app/browser.coffee index 89368fd4ee..c954716d01 100644 --- a/src/app/browser.coffee +++ b/src/app/browser.coffee @@ -179,13 +179,11 @@ setupGrowlNotifications = (model) -> # Append Bonus bonus = model.get('_streakBonus') - debugger if (money > 0) and !!bonus bonus = 0.01 if bonus < 0.01 statsNotification "+ #{showCoins(bonus)} Streak Bonus!" model.del('_streakBonus') - user.on 'set', 'stats.lvl', (captures, args) -> if captures > args if captures is 1 and args is 0 diff --git a/src/server/store.coffee b/src/server/store.coffee index 7d26ec2ed7..af7f63d362 100644 --- a/src/server/store.coffee +++ b/src/server/store.coffee @@ -39,8 +39,11 @@ userAccess = (store) -> uid = captures.shift() attrPath = captures.join('.') # new array shifted left, after shift() was run + if attrPath is 'backer' + return accept(false) # we can only manually set this stuff in the database + # public access to users.*.party.invitation (TODO, lock down a bit more) - if (attrPath == 'party.invitation') + if attrPath is 'party.invitation' return accept(true) # Same session (user.id = this.session.userId)