pyrax icon indicating copy to clipboard operation
pyrax copied to clipboard

It would be super nice to have a User.roles method.

Open thedodd opened this issue 11 years ago • 1 comments

Currently, there does not appear to be a helper method for retrieving the roles for a User object. It would be great to have a wrapper that would effectively accomplish the following for a given User instance as user:

user.manager.list_roles_for_user(user)

Shortening this to simply user.roles would be sweet!

thedodd avatar Sep 19 '14 15:09 thedodd

list_roles_for_user() should also return Roles objects, not a list of dicts, as it currently does.

EdLeafe avatar Nov 24 '14 18:11 EdLeafe