optimize the initial subscription process by first sbuscribing to

parties. this will require a small overhaul of the party system, which
I'll do next
This commit is contained in:
Tyler Renelle
2013-05-08 12:17:41 +01:00
parent a64c40cd79
commit 745612d2f4
2 changed files with 21 additions and 30 deletions
+7
View File
@@ -123,6 +123,13 @@ partySystem = (store) ->
return accept(false) if derbyAuth.bustedSession(@)
accept(true)
store.query.expose "parties", "withMember", (id) ->
@where('members').contains([id]).findOne()
store.queryAccess 'parties', 'withMember', (id, accept, err) ->
return accept(false) if derbyAuth.bustedSession(@)
accept(true)
###
LFG / tavern system
###