Issue #5366 done. All documents global permission and filter added.
Minor fix of under_control versions count in sidebar