WebSubmit: allow record owners to upload files

* The uploadfile should also allow record owners to submit
  files, not only users that are authorized via WebAccess roles.

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
WebSubmit: fix access restrictions in /uploadfile

* Takes into account the 'categ' parameter when checking if a user
  is allowed to upload files. (closes #1703) (closes #2066)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>