mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 19:49:58 +08:00
11 lines
211 B
JavaScript
11 lines
211 B
JavaScript
module.exports = (user /* , perm*/) => {
|
|
|
|
// this runs before everything
|
|
if (
|
|
user.status === 'BANNED' ||
|
|
(user.suspension.until && user.suspension.until > new Date())
|
|
) {
|
|
return false;
|
|
}
|
|
};
|