mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 05:17:19 +08:00
13 lines
219 B
JavaScript
13 lines
219 B
JavaScript
module.exports = {
|
|
constants: [],
|
|
reducer: (perm, user, context, initialState) => {
|
|
|
|
// this runs before everything
|
|
if (user.status === 'BANNED') {
|
|
return false;
|
|
}
|
|
|
|
return initialState;
|
|
}
|
|
};
|