This commit is contained in:
Daniel Saewitz
2013-02-23 04:45:00 -05:00
parent 177c7e4f17
commit bddd0bd148
4 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ router.post '/user/task', (req, res) ->
return res.json 500, err: "must have text" unless check(text).notEmpty()
value ||= 0
#model.ref '_user', user
model.ref '_user', user.at(0)
model.refList "_#{type}List", "_user.tasks", "_user.#{type}Ids"
model.push "_#{type}List", task
+6 -1
View File
@@ -28,7 +28,12 @@ userAccess = (store) ->
store.writeAccess "*", "users.*", -> # captures, value, accept, err ->
accept = arguments[arguments.length-2]
err = arguments[arguments.length - 1]
# return err(derbyAuth.SESSION_INVALIDATED_ERROR) if derbyAuth.bustedSession(@)
# return err(derbyAuth.SESSION_INVALIDATED_ERROR) if derbyAuth.bustedSession(@)
# TEMPORARY token check to allow api
# Must fix before release
return accept(true)
return accept(false) if derbyAuth.bustedSession(@)
captures = arguments[0].split('.')