def METHOD_NAME(f):
    """util for serializing last activity details"""
    def decorator(self, obj):
        if not obj.last_thread_id:
            return None
        acl = self.get_acl(obj)
        tested_acls = (
            acl.get("can_see"),
            acl.get("can_browse"),
            acl.get("can_see_all_threads"),
        )
        if not all(tested_acls):
            return None
        return f(self, obj)
    return decorator