mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 22:55:39 +08:00
18 lines
380 B
JavaScript
18 lines
380 B
JavaScript
const mutation = require('./mutation');
|
|
const query = require('./query');
|
|
const subscription = require('./subscription');
|
|
|
|
module.exports = [
|
|
(user /* , perm*/) => {
|
|
|
|
// If a user is banned or currently suspended, then they aren't allowed to
|
|
// do anything.
|
|
if (user.banned || user.suspended) {
|
|
return false;
|
|
}
|
|
},
|
|
query,
|
|
mutation,
|
|
subscription,
|
|
];
|