remove context

This commit is contained in:
riley committed 2017-05-16 16:34:04 -06:00
1 parent 03ce044c53
commit d081c0c5b5
5 files changed
+11 -5

No files matched your search

+7 -1
View File
@@ -1,9 +1,15 @@
module.exports = {
checkRoles: function (user, perm, context) {
DUMMY_ROLE: 'DUMMY_ROLE',
checkRoles: function (user, perm) {
// this runs before everything
if (user.status === 'BANNED') {
return false;
}
switch (perm) {
default:
break;
}
}
};