add a perms utils file

This commit is contained in:
riley
2017-05-18 14:28:43 -06:00
parent ff75b9474a
commit 6deee7cb80
6 changed files with 12 additions and 19 deletions
+1 -7
View File
@@ -1,15 +1,9 @@
module.exports = {
DUMMY_ROLE: 'DUMMY_ROLE',
checkRoles: function (user, perm) {
checkRoles: function (user /* , perm*/) {
// this runs before everything
if (user.status === 'BANNED') {
return false;
}
switch (perm) {
default:
break;
}
}
};