`obj` is not passed to `get_(user|group)_permissions` since it's always equals to `None` at this point; expand the diff and look at the full body of `get_all_permissions`.