mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
have function params in the correct order
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
module.exports = {
|
||||
reducer: function (perm, user, context, initialState) {
|
||||
checkRoles: function (user, perm, context) {
|
||||
|
||||
// this runs before everything
|
||||
if (user.status === 'BANNED') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return initialState;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user