have function params in the correct order

This commit is contained in:
riley
2017-05-16 15:41:27 -06:00
parent c7e9fe3f5f
commit 31647fb2f0
7 changed files with 32 additions and 31 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ module.exports = {
REMOVE_COMMENT_TAG: 'REMOVE_COMMENT_TAG',
UPDATE_USER_ROLES: 'UPDATE_USER_ROLES',
UPDATE_CONFIG: 'UPDATE_CONFIG',
reducer: function (user, perm, context, initialState) {
checkRoles: function (user, perm, context) {
switch (perm) {
case this.CREATE_COMMENT:
return true;
@@ -40,7 +40,7 @@ module.exports = {
case this.UPDATE_CONFIG:
return check(user, ['ADMIN', 'MODERATOR']);
default:
return initialState;
break;
}
}
};