Check have update permission to drafts, fix #1277
Use unified relational code for Oracle, for #1237
Support drafts in owner/group mode, fix #1278
Add tag for read-only documents, fixes #1279
Hide search counts when showing drafts, see #1279