Is there a way to check for attachment delete permissions via API or context conditions as a query? I've already checked this endpoint, not sure if it's working, though.
<span><span>/wiki/api/v2/attachments/{id}/operations</span></span>
are operations the same thing as permissions?
<span><span>/wiki/rest/api/content/{id}/permission/check</span></span>
I've also tried with this one, but it always returns true, and is related to page permissions rather than attachment permissions.
In query context condition I've tried
condition.has_attachment_permission(permission=REMOVE)
this is always false 