Attachments should default to xwiki:XWiki.Admin otherwise they will not have programming rights.
small patch