function hasPermission(permission, permissions) { return permissions.indexOf(permission) != -1; } module.exports = { hasPermission: hasPermission, };