I have a task to create specific object to a specific role, right now, I could get user role and if I now what exactly permissions each role have, I could construct logic in my code, based on that. But as far as I know, right now there is no possibility to get user' role's permissions programmatically, in order of further work with them. I think it would be great, to add such method.