mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Implement live updates for mod actions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user