trailsjs/sails-permissions

wrong hook name

Opened this issue · 1 comments

When running application get error from this place https://github.com/tjwebb/sails-permissions/blob/f2d174b1283a4f07aabe4702ca7a3d416701101e/api/hooks/permissions/index.js#L100

There is no hook permissions( this.sails.hooks.permissions) , but exists 'sails-permission' (this.sails.hooks['sails-permissions'])

error

#76
read post by khchan commented on Dec 16, 2015