Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot read hasRoles of undefined #5

Closed
TobiTenno opened this issue Aug 19, 2016 · 4 comments
Closed

cannot read hasRoles of undefined #5

TobiTenno opened this issue Aug 19, 2016 · 4 comments

Comments

@TobiTenno
Copy link
Contributor

TobiTenno commented Aug 19, 2016

I get the following errors when attempting to use without hubot-auth installed.

ERROR TypeError: Cannot read property 'hasRole' of undefined
   at TextListener.callback (hubot/node_modules/hubot-command-blacklist/src/blacklist.js:68:17)
   at hubot/node_modules/hubot/src/listener.coffee:65:12
   at allDone (hubot/node_modules/hubot/src/middleware.coffee:44:37)
   at hubot/node_modules/hubot/node_modules/async/lib/async.js:274:13
   at hubot/node_modules/hubot/node_modules/async/lib/async.js:154:25
   at hubot/node_modules/hubot/node_modules/async/lib/async.js:271:17
   at nextFunc (hubot/node_modules/hubot/src/middleware.coffee:33:35)
   at hubot/node_modules/hubot-command-blacklist/src/command-middleware.js:16:11
   at hubot/node_modules/hubot/src/middleware.coffee:36:24
   at hubot/node_modules/hubot/node_modules/async/lib/async.js:269:13
   at iterate (hubot/node_modules/hubot/node_modules/async/lib/async.js:146:13)
   at Object.async.eachSeries (hubot/node_modules/hubot/node_modules/async/lib/async.js:162:9)
   at Object.async.reduce (hubot/node_modules/hubot/node_modules/async/lib/async.js:268:15)
   at hubot/node_modules/hubot/src/middleware.coffee:49:13
   at _combinedTickCallback (internal/process/next_tick.js:67:7)
   at process._tickCallback (internal/process/next_tick.js:98:9)
@kristenmills
Copy link
Owner

I haven't looked at this in awhile so it's probably not up to date. I'll get a new release out that addresses this and #6

@TobiTenno
Copy link
Contributor Author

Any thoughts on it so far?

@kristenmills
Copy link
Owner

Haven't had a chance to look. I always welcome pull requests if you want to take a stab at it.

@TobiTenno
Copy link
Contributor Author

I've got a fix for it, but i made a new module for it, because it relies on adapter-specific code.

I'll pull the fixes for it into a direct fork for it here.

kristenmills added a commit that referenced this issue Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants