Well a new way of editing items fro me :)! Just saw the following part of code in the API Overview(.chm) today:
using (new Sitecore.Data.Items.EditContext(myItem))
myItem.Fields[“subject”] = “You did hack Sitecore again today, Alex?”;
From now on, I’ll never user Item.Editing again. This Accepts my changes immediatelly and I don’t have to start editing, etc. Are their any more Context-objects available? Well, going to search for them tomorrow. If you know some, please post a comment!
Spent my today today writing more and more security-manipulate code(see post below), will post tomorrow more of the stuff written today.
Update: As you can see the comments of the Sitecore team, the EditContext isn’t preferred anymore. It can be still used for accounts with full rights(Admins) or when you disable the security, but it’s highly recommed to use the Item.Editing object.