mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
remove console.log on accessControl
Conflicts: src/server/setupStore.coffee
This commit is contained in:
parent
4c29c93864
commit
4aa21e03d9
2 changed files with 2 additions and 17 deletions
|
|
@ -15,13 +15,6 @@ module.exports.accessControl = function(store) {
|
|||
}
|
||||
captures = arguments[0];
|
||||
next = arguments[arguments.length - 1];
|
||||
console.log({
|
||||
readPathAccess: {
|
||||
captures: captures,
|
||||
sessionUserId: this.session.userId,
|
||||
next: next
|
||||
}
|
||||
});
|
||||
return next(captures === this.session.userId);
|
||||
});
|
||||
return store.writeAccess('*', 'users.*', function() {
|
||||
|
|
@ -32,14 +25,6 @@ module.exports.accessControl = function(store) {
|
|||
captures = arguments[0];
|
||||
next = arguments[arguments.length - 1];
|
||||
pathArray = captures.split('.');
|
||||
console.log({
|
||||
writeAccess: {
|
||||
captures: captures,
|
||||
next: next,
|
||||
pathArray: pathArray,
|
||||
"arguments": arguments
|
||||
}
|
||||
});
|
||||
return next(pathArray[0] === this.session.userId);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ module.exports.accessControl = (store) ->
|
|||
return unless @session && @session.userId # https://github.com/codeparty/racer/issues/37
|
||||
captures = arguments[0]
|
||||
next = arguments[arguments.length-1]
|
||||
console.log { readPathAccess: {captures:captures, sessionUserId:@session.userId, next:next} }
|
||||
# console.log { readPathAccess: {captures:captures, sessionUserId:@session.userId, next:next} }
|
||||
next(captures == @session.userId)
|
||||
|
||||
store.writeAccess '*', 'users.*', () -> #captures, value, next) ->
|
||||
|
|
@ -20,5 +20,5 @@ module.exports.accessControl = (store) ->
|
|||
captures = arguments[0]
|
||||
next = arguments[arguments.length-1]
|
||||
pathArray = captures.split('.')
|
||||
console.log { writeAccess: {captures:captures, next:next, pathArray:pathArray, arguments:arguments} }
|
||||
# console.log { writeAccess: {captures:captures, next:next, pathArray:pathArray, arguments:arguments} }
|
||||
next(pathArray[0] == @session.userId)
|
||||
Loading…
Reference in a new issue