mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
comment out balance
This commit is contained in:
parent
fea1e0efdc
commit
3f07fe9c8a
1 changed files with 5 additions and 5 deletions
|
|
@ -4,11 +4,11 @@ Setup read / write access
|
|||
###
|
||||
module.exports = (store) ->
|
||||
|
||||
store.writeAccess "*", "users.*.balance", (id, newBalance, next) ->
|
||||
return unless @session and @session.userId # https://github.com/codeparty/racer/issues/37
|
||||
purchasingSomethingOnClient = newBalance < this.session.req._racerModel.get("users.#{id}.balance")
|
||||
isServer = not @req.socket
|
||||
next(purchasingSomethingOnClient or isServer)
|
||||
# store.writeAccess "*", "users.*.balance", (id, newBalance, next) ->
|
||||
# return unless @session and @session.userId # https://github.com/codeparty/racer/issues/37
|
||||
# purchasingSomethingOnClient = newBalance < this.session.req._racerModel.get("users.#{id}.balance")
|
||||
# isServer = not @req.socket
|
||||
# next(purchasingSomethingOnClient or isServer)
|
||||
|
||||
store.writeAccess "*", "users.*.flags.ads", -> # captures, value, next ->
|
||||
return unless @session and @session.userId # https://github.com/codeparty/racer/issues/37
|
||||
|
|
|
|||
Loading…
Reference in a new issue