I have gone through the packages and I couldn't find any appropriate method for listing roles, resources and their permissions on it.
/**
whatResources(role, function(err, {resourceName: [permissions]})
Returns what resources a given role or roles have permissions over.
whatResources(role, permissions, function(err, resources) )
Returns what resources a role has the given permissions over, even I pass roles as an array.
@param {String|Array} Roles
@param {String|Array} Permissions
@param {Function} Callback called wish the result.
*/
It return data like below,
{
resource: [permissions]
}
But it doesn't return what role has what permissions.
I want something like below,
I have gone through the packages and I couldn't find any appropriate method for listing roles, resources and their permissions on it.
It return data like below,
But it doesn't return what
role
has what permissions. I want something like below,