WebSubmit: check_user_can_view_record in publiline
- Use check_user_can_view_record() in publinine in order to check access rights to a given document.
- No longer expose some sub-functions through the web interface.
- Removes some deprecated code. Small cleaning.