Fix API for edit and delete release attachment (#8285)
Fix API for edit and delete release attachment (#8285)

* Add logging for when user requested attachment doesn't belong to the specified release.

* Fix API to use correct variable for release asset (attachment)

go-gitea/gitea,go-gitea/gitea,sapk-fork/gitea,vdbt/gitea,cez81/gitea,sapk-fork/gitea,vdbt/gitea,sapk-fork/gitea,lafriks/gitea,cez81/gitea,typeless/gitea,vCaesar/gitea,typeless/gitea,cez81/gitea,go-gitea/gitea,typeless/gitea,typeless/gitea,sapk-fork/gitea,lafriks/gitea,vCaesar/gitea,lafriks/gitea