more comment on accessControls not being called

This commit is contained in:
Tyler Renelle
2012-07-19 14:59:45 -04:00
parent d53668065d
commit 2f008533bc
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -79,9 +79,10 @@ get '/:uidParam?', (page, model, {uidParam}) ->
#TODO these *Access functions aren't being called, why?
model.store.accessControl = true
model.store.readPathAccess 'users.*', (id, accept) ->
console.log "model.writeAccess called with id:#{id}" # never called
accept(id == userId)
model.store.writeAccess '*', 'users.*', (id, accept) ->
console.log "model.writeAccess called with id:#{id}"
console.log "model.writeAccess called with id:#{id}" # never called
accept(id == userId)
getHabits(page, model, userId)