

def get(self, group_id):
    if (not (self.current_user.has_permission('admin') or (int(group_id) in self.current_user.groups))):
        abort(403)
    group = models.Group.get_by_id_and_org(group_id, self.current_org)
    return group.to_dict()

dataset/ETHPy150Open getredash/redash/redash/handlers/groups.py GroupResource.get/original