Fix #1918 "Columns username/groupname are always set to null"
Fix #1919 "Unauthorized error if user has owner permissions"
Minor: remove unused function