mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
add a perms utils file
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
module.exports = {
|
||||
DUMMY_ROLE: 'DUMMY_ROLE',
|
||||
checkRoles: function (user, perm) {
|
||||
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