Backport #39048 by @bircni Reject attachment requests routed through a repository other than the attachment owner. Co-authored-by: bircni <bircni@icloud.com> Co-authored-by: silverwind <me@silverwind.io>