temporarily disable accessControl so i can run schema update

This commit is contained in:
Tyler Renelle
2012-09-04 22:56:01 -04:00
parent 9c58a7809f
commit 79f1c635ca
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -7,7 +7,6 @@ module.exports.queries = function(store) {
};
module.exports.accessControl = function(store) {
store.accessControl = true;
store.readPathAccess('users.*', function() {
var captures, next;
if (!(this.session && this.session.userId)) {
+2 -2
View File
@@ -3,7 +3,7 @@ module.exports.queries = (store) ->
@byId(id)
module.exports.accessControl = (store) ->
store.accessControl = true
# store.accessControl = true
# FIXME callback signatures here have variable length, eg `callback(captures..., next)`
# Is using arguments[n] the correct way to handle this?
@@ -21,4 +21,4 @@ module.exports.accessControl = (store) ->
next = arguments[arguments.length-1]
pathArray = captures.split('.')
# console.log { writeAccess: {captures:captures, next:next, pathArray:pathArray, arguments:arguments} }
next(pathArray[0] == @session.userId)
next(pathArray[0] == @session.userId)