improved DataObject onBeforeWrite

After Perm-Check