Fix JSdoc for registerResolver

This commit is contained in:
Rand McKinney 2014-10-20 14:45:40 -07:00
parent d0a817ff43
commit 2384c9d841
1 changed files with 4 additions and 6 deletions

View File

@ -78,12 +78,10 @@ module.exports = function(Role) {
Role.EVERYONE = "$everyone"; // everyone
/**
* Add custom handler for roles
* @param role
* @param resolver The resolver function decides if a principal is in the role
* dynamically
*
* function(role, context, callback)
* Add custom handler for roles.
* @param {String} role Name of role.
* @param {Function} resolver Function that determines if a principal is in the specified role.
* Signature must be `function(role, context, callback)`
*/
Role.registerResolver = function(role, resolver) {
if (!Role.resolvers) {