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
@@ -10,7 +10,7 @@ module.exports = {
SEARCH_NON_NULL_OR_ACCEPTED_COMMENTS: 'SEARCH_NON_NULL_OR_ACCEPTED_COMMENTS',
SEARCH_OTHERS_COMMENTS: 'SEARCH_OTHERS_COMMENTS',
SEARCH_COMMENT_METRICS: 'SEARCH_COMMENT_METRICS',
reducer: function (perm, user, context, initialState) {
checkRoles: function (user, perm, context) {
switch (perm) {
case this.SEARCH_ASSETS:
return check(user, ['ADMIN', 'MODERATOR']);
@@ -25,7 +25,7 @@ module.exports = {
case this.SEARCH_COMMENT_METRICS:
return check(user, ['ADMIN', 'MODERATOR']);
default:
return initialState;
break;
}
}
};