mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 17:51:53 +08:00
16 lines
243 B
JavaScript
16 lines
243 B
JavaScript
module.exports = {
|
|
DUMMY_ROLE: 'DUMMY_ROLE',
|
|
checkRoles: function (user, perm) {
|
|
|
|
// this runs before everything
|
|
if (user.status === 'BANNED') {
|
|
return false;
|
|
}
|
|
|
|
switch (perm) {
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
};
|