We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
how i can return a json representation of _allRoles private methods for dynamic acl controll?
something like that: acl._allRoles(function(err));
`// // Return all roles in the hierarchy including the given roles. // Acl.prototype._allRoles = function(roleNames){ var _this = this;
return this._rolesParents(roleNames).then(function(parents){ if(parents.length > 0){ return _this._allRoles(parents).then(function(parentRoles){ return _.union(roleNames, parentRoles); }); }else{ return roleNames; } }); };`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
how i can return a json representation of _allRoles private methods for dynamic acl controll?
something like that: acl._allRoles(function(err));
`//
// Return all roles in the hierarchy including the given roles.
//
Acl.prototype._allRoles = function(roleNames){
var _this = this;
return this._rolesParents(roleNames).then(function(parents){
if(parents.length > 0){
return _this._allRoles(parents).then(function(parentRoles){
return _.union(roleNames, parentRoles);
});
}else{
return roleNames;
}
});
};`
The text was updated successfully, but these errors were encountered: