mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
remove console.log on accessControl
Conflicts: src/server/setupStore.coffee
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user