Implement live updates for mod actions

This commit is contained in:
Chi Vinh Le
2017-06-15 01:08:25 +07:00
parent 687b135adf
commit 3658a804b0
22 changed files with 432 additions and 255 deletions
+11
View File
@@ -0,0 +1,11 @@
const {check} = require('./utils');
const types = require('./constants');
module.exports = (user, perm) => {
switch (perm) {
case types.SUBSCRIBE_COMMENT_STATUS:
return check(user, ['ADMIN', 'MODERATOR']);
default:
break;
}
};