mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
remove context
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
module.exports = {
|
||||
checkRoles: function (user, perm, context) {
|
||||
DUMMY_ROLE: 'DUMMY_ROLE',
|
||||
checkRoles: function (user, perm) {
|
||||
|
||||
// this runs before everything
|
||||
if (user.status === 'BANNED') {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (perm) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user