def METHOD_NAME(self, user_obj, obj=None):
    if not user_obj.is_active or user_obj.is_anonymous:
        return {}
    if not hasattr(user_obj, "_object_perm_cache"):
        user_obj._object_perm_cache = self.get_object_permissions(user_obj)
    return user_obj._object_perm_cache