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 -4
View File
@@ -1,7 +1,4 @@
const intersection = require('lodash/intersection');
const check = (user, roles) => {
return !!intersection(roles, user.roles).length;
};
const {check} = require('./utils');
module.exports = {
SEARCH_ASSETS: 'SEARCH_ASSETS',