add method to get rights for a specific group
reformat code