temporarily disable accessControl so i can run schema update
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user